开服就跨服分组
parent
b58df88870
commit
665b993e21
|
|
@ -310,7 +310,15 @@ public class GlobleSystemLogic implements IEventHandler {
|
|||
return -1;
|
||||
}
|
||||
Integer group = RedisUtil.getInstence().getMapValue(RedisKey.SERVER_SPLIT_INFO, "", String.valueOf(GameApplication.serverId), Integer.class);
|
||||
if (group == null || group <= 0){
|
||||
// 当本地无跨服id时,读取gm的跨服分组,开服用
|
||||
if (group == null){
|
||||
Integer entry = RedisUtil.getInstence().getMapEntry(RedisKey.CROSS_SERVER_GROUP, "", String.valueOf(GameApplication.serverId), Integer.class);
|
||||
if (entry != null){
|
||||
RedisUtil.getInstence().putMapEntry(RedisKey.SERVER_SPLIT_INFO, "", String.valueOf(GameApplication.serverId),entry);
|
||||
group = entry;
|
||||
}
|
||||
}
|
||||
if (group <= 0){
|
||||
return -1;
|
||||
}
|
||||
crossGroup = group;
|
||||
|
|
|
|||
Loading…
Reference in New Issue