back_recharge
duhui 2023-04-04 16:57:07 +08:00
parent 2d0a740b7c
commit 480eb4a62f
1 changed files with 3 additions and 3 deletions

View File

@ -744,17 +744,17 @@ public class ArenaLogic {
public static int getState() { public static int getState() {
String key = RedisUtil.getInstence().getKey2(RedisKey.CROSS_SERVICE_ARENA_STATE, String.valueOf(GlobleSystemLogic.crossGroup)); String key = RedisUtil.getInstence().getKey2(RedisKey.CROSS_SERVICE_ARENA_STATE, String.valueOf(GlobleSystemLogic.crossGroup));
Object value = RedisUtil.getInstence().get(key); Object value = RedisUtil.getInstence().get(key);
int state = 1; int state = NORMAL_STATE;
if (value == null){ if (value == null){
// 兼容老状态 // 兼容老状态
key = RedisUtil.getInstence().getKey(RedisKey.CROSS_SERVICE_ARENA_STATE, ""); key = RedisUtil.getInstence().getKey(RedisKey.CROSS_SERVICE_ARENA_STATE, "");
value = RedisUtil.getInstence().get(key); value = RedisUtil.getInstence().get(key);
if (value != null){ if (value != null){
setState(state); setState(state);
state = (int) value; state = Integer.parseInt((String) value);
} }
}else { }else {
state = (int) value; state = Integer.parseInt((String) value);
} }
return state; return state;
} }