From a84a8213d345441a85056010220bec1fb9f10368 Mon Sep 17 00:00:00 2001 From: wangyuan Date: Wed, 18 Dec 2019 20:17:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=94=B6=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jieling/logic/championship/ChampionshipLogic.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/championship/ChampionshipLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/championship/ChampionshipLogic.java index 558d114f2..2b75a602a 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/championship/ChampionshipLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/championship/ChampionshipLogic.java @@ -256,7 +256,7 @@ public class ChampionshipLogic { */ public static void start() { LOGGER.info("the champion start..."); - Set> arenaRankInfoInRedis = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK, Integer.toString(1), 0, -1); + Set> arenaRankInfoInRedis = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK,"", 0, -1); Map robotConfigMap = STableManager.getConfig(SArenaRobotConfig.class); Set joinUids = new HashSet<>(128); for(ZSetOperations.TypedTuple item : arenaRankInfoInRedis){ @@ -344,7 +344,7 @@ public class ChampionshipLogic { }); int rank=1; - Set> arenaRankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK, Integer.toString(1), 0, -1); + Set> arenaRankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK,"", 0, -1); Map robotConfigMap = STableManager.getConfig(SArenaRobotConfig.class); int nowTime = (int)(TimeUtils.now()/1000); Set joinUids = new HashSet<>(128); @@ -355,6 +355,7 @@ public class ChampionshipLogic { rank++; continue; } + joinUids.add(uid); User user = UserManager.getUser(uid); SChampionshipReward sChampionshipReward = rewardsMap.get(rank); String title = SErrorCodeEerverConfig.getI18NMessage("champion_reward_title"); @@ -390,8 +391,7 @@ public class ChampionshipLogic { } - progress=253; - endTime=1576665312; + close(); } @@ -819,6 +819,8 @@ public class ChampionshipLogic { delKeys.add( RedisUtil.getInstence().getKey(RedisKey.CHAMPION_FINAL32_JOIN_IDS, "")); delKeys.add( RedisUtil.getInstence().getKey(RedisKey.CHAMPION_FINAL4_JOIN_IDS, "")); delKeys.add( RedisUtil.getInstence().getKey(RedisKey.CHAMPION_FINAL_TEAM_INFO, "")); + delKeys.add( RedisUtil.getInstence().getKey(RedisKey.CHAMPION_RANK, "")); + delKeys.add( RedisUtil.getInstence().getKey(RedisKey.CHAMPION_FINAL_RECODED_IDS, "")); //我的历史结果 joinUids.forEach(uid->{