竞速排行bug

back_recharge
jiahuiwen 2019-04-25 14:47:38 +08:00
parent aa3c588b87
commit fac16f9dfd
1 changed files with 2 additions and 1 deletions

View File

@ -1312,6 +1312,7 @@ public class MapLogic {
if (crossInfo == null) {
crossInfo = new CrossInfo();
}
int beforTime = crossInfo.getLeastTime();
if (useTime < crossInfo.getLeastTime()) {
crossInfo.setLeastTime(useTime);
}
@ -1332,7 +1333,7 @@ public class MapLogic {
crossInfo.setForces(heroForces);
}
SChallengeMapConfig sChallengeMapConfig = SChallengeMapConfig.integerSChallengeMapConfigMap.get(mapManager.getCurMapId());
if (sChallengeMapConfig.getIfRank() == 1 && useTime > 0 && useTime < crossInfo.getLeastTime()) {
if (sChallengeMapConfig.getIfRank() == 1 && useTime > 0 && useTime < beforTime) {
String key = RedisKey.getKey(RedisKey.MAP_RANK, Integer.toString(mapManager.getCurMapId()), true);
RedisUtil.getInstence().zsetAddOne(key, mapManager.getRootId(), useTime);
int zsetSize = RedisUtil.getInstence().getZsetSize(key);