御剑行,活动切换修改
parent
c183c40c81
commit
6066375355
|
@ -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()){
|
||||
|
|
Loading…
Reference in New Issue