分组信息直接取redis

lvxinran 2021-07-10 01:58:06 +08:00
parent 51ffb72fe6
commit f43e032398
1 changed files with 3 additions and 4 deletions

View File

@ -269,10 +269,9 @@ public class GlobleSystemLogic implements IEventHandler {
if(!GameApplication.serverProperties.isArenaCross()){
return -1;
}
if(crossGroup==0){
Integer group = RedisUtil.getInstence().getMapValue(RedisKey.SERVER_SPLIT_INFO, "", String.valueOf(GameApplication.serverId), Integer.class);
crossGroup = group==null?-1:group;
}
return crossGroup;
}