back_recharge
lvxinran 2019-11-12 11:35:07 +08:00
commit ad721607bb
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ public class ArenaLogic {
throw new ErrorCodeException(ErrorCode.FIGHT_EXCEPTION);
}
defScore = RedisUtil.getInstence().getZSetScore(RedisKey.ARENA_RANK,Integer.toString(curSeason), Integer.toString(challengeUid)).intValue();
if(defScore == -1){
defScore = SArenaSetting.getSArenaSetting().getScore();
}
defScoreChange = calScore(defScore, myscore,fightResult==1?0:1);
myscoreChange = calScore(myscore, defScore,fightResult);
if(defUser.getArenaManager().getCount()!=0){