TASK【ID1006424】竞猜结果赔率、显示、信息保留修改

zhangshanxue 2020-07-01 22:44:08 +08:00
parent 12b7cc9c0e
commit 8f8dc0e631
1 changed files with 6 additions and 6 deletions

View File

@ -357,7 +357,7 @@ public class ChampionshipLogic {
} }
MongoUtil.getLjsdMongoTemplate().lastUpdate(); MongoUtil.getLjsdMongoTemplate().lastUpdate();
clearReidsWhenEnd(joinUids); //clearReidsWhenEnd(joinUids);
} }
@ -791,15 +791,15 @@ public class ChampionshipLogic {
int fightResult = arenaRecord.getFightResult(); int fightResult = arenaRecord.getFightResult();
int winUid = arenaRecord.getAttackId(); int winUid = arenaRecord.getAttackId();
int failUid = arenaRecord.getDefUid(); // int failUid = arenaRecord.getDefUid();
if(fightResult == 0){ if(fightResult == 0){
winUid = arenaRecord.getDefUid(); winUid = arenaRecord.getDefUid();
failUid = arenaRecord.getAttackId(); // failUid = arenaRecord.getAttackId();
} }
Double winCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" +winUid); // Double winCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" +winUid);
Double failCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" + failUid); // Double failCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" + failUid);
double winRate = (winCoins + failCoins) / winCoins; double winRate = 1.5;
Map<Integer, Integer> betPersonInfoMap = RedisUtil.getInstence().getMapValues(RedisKey.CHAMPION_BET_DETAIL, selectUid + ":" + winUid, Integer.class, Integer.class); Map<Integer, Integer> betPersonInfoMap = RedisUtil.getInstence().getMapValues(RedisKey.CHAMPION_BET_DETAIL, selectUid + ":" + winUid, Integer.class, Integer.class);
betPersonInfoMap.forEach((betUid,coins)->{ betPersonInfoMap.forEach((betUid,coins)->{
try { try {