回收资源

back_recharge
wangyuan 2019-12-18 20:17:02 +08:00
parent 4c47ac3d76
commit a84a8213d3
1 changed files with 6 additions and 4 deletions

View File

@ -256,7 +256,7 @@ public class ChampionshipLogic {
*/
public static void start() {
LOGGER.info("the champion start...");
Set<ZSetOperations.TypedTuple<String>> arenaRankInfoInRedis = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK, Integer.toString(1), 0, -1);
Set<ZSetOperations.TypedTuple<String>> arenaRankInfoInRedis = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK,"", 0, -1);
Map<Integer, SArenaRobotConfig> robotConfigMap = STableManager.getConfig(SArenaRobotConfig.class);
Set<Integer> joinUids = new HashSet<>(128);
for(ZSetOperations.TypedTuple<String> item : arenaRankInfoInRedis){
@ -344,7 +344,7 @@ public class ChampionshipLogic {
});
int rank=1;
Set<ZSetOperations.TypedTuple<String>> arenaRankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK, Integer.toString(1), 0, -1);
Set<ZSetOperations.TypedTuple<String>> arenaRankInfo = RedisUtil.getInstence().getZsetreverseRangeWithScores(RedisKey.CHAMPION_RANK,"", 0, -1);
Map<Integer, SArenaRobotConfig> robotConfigMap = STableManager.getConfig(SArenaRobotConfig.class);
int nowTime = (int)(TimeUtils.now()/1000);
Set<Integer> 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->{