From ac596f4612c00113b7c1388f44e75dac908a19a8 Mon Sep 17 00:00:00 2001 From: wangyuan Date: Sun, 28 Apr 2019 17:29:04 +0800 Subject: [PATCH] redis key --- .../main/java/com/ljsd/jieling/handler/map/MapLogic.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 309a54938..6a4851add 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 @@ -1343,7 +1343,7 @@ public class MapLogic { } SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapManager.getCurMapId()); if (sChallengeMapConfig.getIfRank() == 1 && useTime > 0 && useTime < beforTime) { - String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapManager.getCurMapId()), true); + String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapManager.getCurMapId()), false); RedisUtil.getInstence().zsetAddOne(key, mapManager.getRootId(), useTime); } mapManager.updateCrossInfoMap(mapManager.getCurMapId(), crossInfo); @@ -1360,7 +1360,7 @@ public class MapLogic { * @param messageType */ public void getMapRank(ISession session, int mapId, MessageTypeProto.MessageType messageType) throws Exception { - String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapId), true); + String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapId), false); Set zset = RedisUtil.getInstence().getZset(key, 0, 10); List mapRankInfos = new ArrayList<>(10); int rank = 1; @@ -1848,7 +1848,7 @@ public class MapLogic { public void minuteCheckAndRemoveMapRank(){ Map> sCMap = SCMap.sCMap; for(Integer mapId : sCMap.keySet()){ - String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapId), true); + String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapId), false); int size = RedisUtil.getInstence().getZsetSize(key); if(size>15){ RedisUtil.getInstence().removeZSetRangeByRank(key, 15,size);