coins position
parent
8b249ba977
commit
1b99d00270
|
@ -860,11 +860,11 @@ public class ChampionshipLogic {
|
|||
|
||||
|
||||
int fightResult = arenaRecord.getFightResult();
|
||||
int winUid = arenaRecord.getDefUid();
|
||||
int failUid = arenaRecord.getAttackId();
|
||||
int winUid = arenaRecord.getAttackId();
|
||||
int failUid = arenaRecord.getDefUid();
|
||||
if(fightResult == 0){
|
||||
winUid = arenaRecord.getAttackId();
|
||||
failUid = arenaRecord.getDefUid();
|
||||
winUid = arenaRecord.getDefUid();
|
||||
failUid = arenaRecord.getAttackId();
|
||||
}
|
||||
Double winCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" +winUid);
|
||||
Double failCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" + failUid);
|
||||
|
@ -975,7 +975,7 @@ public class ChampionshipLogic {
|
|||
ArenaRecord arenaRecord = RedisUtil.getInstence().getMapValue(RedisKey.CHAMPION_ARENA_RECORD,"",selectUid,ArenaRecord.class);
|
||||
Double attackCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" + arenaRecord.getAttackId());
|
||||
Double defCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" + arenaRecord.getDefUid());
|
||||
return CommonProto.ChampionBetInfo.newBuilder().setBlueCoins(defCoins.intValue()).setRedCoins(attackCoins.intValue()).setId(selectUid).build();
|
||||
return CommonProto.ChampionBetInfo.newBuilder().setBlueCoins(attackCoins.intValue()).setRedCoins(defCoins.intValue()).setId(selectUid).build();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue