御剑行,活动切换修改

back_recharge
duhui 2021-10-22 16:24:03 +08:00
parent c183c40c81
commit 6066375355
1 changed files with 8 additions and 5 deletions

View File

@ -61,11 +61,6 @@ public class RidingSwardLogic{
if (endTime == 0 && startTime == 0){
return 0;
}
// 比赛结算阶段
int size = getRankMap("").size();
if (getRound() >= size){
return 3;
}
int now = TimeUtils.nowInt();
// 活动过期
if (now > endTime || now < startTime){
@ -75,6 +70,11 @@ public class RidingSwardLogic{
}
return 0;
}
// 比赛结算阶段
int size = getRankMap("").size();
if (getRound() >= size){
return 3;
}
// 配置表
SRidingSwardConfig config = STableManager.getConfig(SRidingSwardConfig.class).get(1);
// 一场比赛得时间,投注时间+比赛时间
@ -533,6 +533,9 @@ public class RidingSwardLogic{
*
*/
public void rankBack(){
// 缓存清零
startTime = 0;
endTime = 0;
// 获取当前排行榜数据
Map<String, RidingSwardRank> rankMap = RedisUtil.getInstence().getMapValues(RedisKey.RIDING_SWARD_RANK, "", String.class, RidingSwardRank.class);
if (rankMap == null || rankMap.isEmpty()){