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); }