back_recharge
parent
2d0a740b7c
commit
480eb4a62f
|
@ -744,17 +744,17 @@ public class ArenaLogic {
|
|||
public static int getState() {
|
||||
String key = RedisUtil.getInstence().getKey2(RedisKey.CROSS_SERVICE_ARENA_STATE, String.valueOf(GlobleSystemLogic.crossGroup));
|
||||
Object value = RedisUtil.getInstence().get(key);
|
||||
int state = 1;
|
||||
int state = NORMAL_STATE;
|
||||
if (value == null){
|
||||
// 兼容老状态
|
||||
key = RedisUtil.getInstence().getKey(RedisKey.CROSS_SERVICE_ARENA_STATE, "");
|
||||
value = RedisUtil.getInstence().get(key);
|
||||
if (value != null){
|
||||
setState(state);
|
||||
state = (int) value;
|
||||
state = Integer.parseInt((String) value);
|
||||
}
|
||||
}else {
|
||||
state = (int) value;
|
||||
state = Integer.parseInt((String) value);
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue