arena score

back_recharge
wangyuan 2019-07-26 17:04:07 +08:00
parent 5950e80017
commit 09dcb7ffe4
1 changed files with 5 additions and 1 deletions

View File

@ -112,11 +112,15 @@ public class ArenaLogic {
}
CommonProto.Team teamBuild = CommonProto.Team.newBuilder().addAllHeroTid(heroTids).build();
PlayerManager playerInfoManager = user.getPlayerInfoManager();
int score = RedisUtil.getInstence().getZSetScore(RedisKey.ARENA_RANK, Integer.toString(curSeason), Integer.toString(enemyId)).intValue();
if(score == -1){
score = RedisUtil.getInstence().getZSetScore(RedisKey.ARENA_RANK, Integer.toString(curSeason-1), Integer.toString(enemyId)).intValue();
}
CommonProto.ArenaPersonInfo personInfoBuild = CommonProto.ArenaPersonInfo.newBuilder()
.setUid(enemyId)
.setLevel(playerInfoManager.getLevel())
.setName(playerInfoManager.getNickName())
.setScore(RedisUtil.getInstence().getZSetScore(RedisKey.ARENA_RANK,Integer.toString(curSeason), Integer.toString(enemyId)).intValue())
.setScore(score)
.setHead(0)
.setTotalForce(totalForce)
.build();