TASK【ID1006424】竞猜结果赔率、显示、信息保留修改
parent
12b7cc9c0e
commit
8f8dc0e631
|
@ -357,7 +357,7 @@ public class ChampionshipLogic {
|
|||
|
||||
}
|
||||
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
||||
clearReidsWhenEnd(joinUids);
|
||||
//clearReidsWhenEnd(joinUids);
|
||||
|
||||
|
||||
}
|
||||
|
@ -791,15 +791,15 @@ public class ChampionshipLogic {
|
|||
|
||||
int fightResult = arenaRecord.getFightResult();
|
||||
int winUid = arenaRecord.getAttackId();
|
||||
int failUid = arenaRecord.getDefUid();
|
||||
// int failUid = arenaRecord.getDefUid();
|
||||
if(fightResult == 0){
|
||||
winUid = arenaRecord.getDefUid();
|
||||
failUid = arenaRecord.getAttackId();
|
||||
// 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);
|
||||
// Double winCoins = RedisUtil.getInstence().getZSetScore(RedisKey.CHAMPION_BET_ALL, "", selectUid + ":" +winUid);
|
||||
// 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);
|
||||
betPersonInfoMap.forEach((betUid,coins)->{
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue