代码优化
parent
3566a3a665
commit
15f2f5d6ed
|
@ -147,6 +147,13 @@ public class CrossLingmaiSecretAreaBattleHandler extends BaseHandler<ArenaInfoPr
|
||||||
if(myLingmaiId != 0&&score!=0){
|
if(myLingmaiId != 0&&score!=0){
|
||||||
lingMaiSecretArea.setScore1(score);
|
lingMaiSecretArea.setScore1(score);
|
||||||
}
|
}
|
||||||
|
//被打下榜 重新上
|
||||||
|
if(myLingmaiId ==0){
|
||||||
|
double disappearScore = rank.getScoreById(uid, crossGroup + RedisKey.Delimiter_colon + group);
|
||||||
|
if(disappearScore>0){
|
||||||
|
lingMaiSecretArea.setScore1((int) disappearScore);
|
||||||
|
}
|
||||||
|
}
|
||||||
RedisUtil.getInstence().putMapEntry(RedisKey.CROSS_LINGMAISECRET_INFO, crossGroup + RedisKey.Delimiter_colon + group, String.valueOf(id), lingMaiSecretArea);
|
RedisUtil.getInstence().putMapEntry(RedisKey.CROSS_LINGMAISECRET_INFO, crossGroup + RedisKey.Delimiter_colon + group, String.valueOf(id), lingMaiSecretArea);
|
||||||
}
|
}
|
||||||
res.setResult(fightResult.getResult());
|
res.setResult(fightResult.getResult());
|
||||||
|
|
Loading…
Reference in New Issue