From 53b1dc14800cf590d7c1efc614778b0609093e18 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Fri, 1 Jan 2021 19:35:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=AE=E7=BD=97=E5=B0=8F=E6=80=AA=E7=BA=A2?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ljsd/jieling/handler/map/MapLogic.java | 28 ++----------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java index 0376961e7..0fe28b982 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/handler/map/MapLogic.java @@ -2043,33 +2043,9 @@ public class MapLogic { User user = UserManager.getUser(uid); MapInfoProto.getAllLevelDifficultyInfosResponse.Builder builder = MapInfoProto.getAllLevelDifficultyInfosResponse.newBuilder(); MapManager mapManager = user.getMapManager(); - Map crossInfoMap = mapManager.getCrossInfoMap(); - for (Map.Entry entry : crossInfoMap.entrySet()) { - CommonProto.MapInfo mapInfo = CommonProto.MapInfo - .newBuilder() - .setMapId(entry.getKey()) - .setLeastTime(entry.getValue().getLeastTime()) - .addAllStars(entry.getValue().getStars()) - .build(); - builder.addMapInfos(mapInfo); - } - int starReward = mapManager.getStarReward(); - SChallengeStarBox sChallengeStarBox = STableManager.getConfig(SChallengeStarBox.class).get(starReward); - if(sChallengeStarBox == null ){ - builder.setStarNum(0); - }else{ - builder.setStarNum(sChallengeStarBox.getStarNum()); - } - //登录时检测是否需要重置 - checkTrialReset(user); - builder.addAllPlayedGenMapId(mapManager.getPlayGenMaps()); + builder.setKillCount(mapManager.getTrialInfo().getKillCount()); + builder.addAllTrialRewardInfo(mapManager.getTrialInfo().getTowerReceivedReward()); - for(Map.Entry entry:mapManager.getDifficultyOptions().entrySet()){ - MapInfoProto.DifficultMapOption.Builder difficultMapOption = MapInfoProto.DifficultMapOption.newBuilder(); - difficultMapOption.setId(entry.getKey()); - difficultMapOption.setMapdifficulty(entry.getValue()); - builder.addDifficultMapOptions(difficultMapOption); - } MessageUtil.sendMessage(iSession, 1, msgId, builder.build(), true); }