back_recharge
parent
2d0a740b7c
commit
480eb4a62f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue