From f43e0323989e037061d154ff2c96ca01997091b7 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Sat, 10 Jul 2021 01:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=BB=84=E4=BF=A1=E6=81=AF=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E5=8F=96redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ljsd/jieling/logic/GlobleSystemLogic.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/GlobleSystemLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/GlobleSystemLogic.java index ad345f17b..e7674a987 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/GlobleSystemLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/GlobleSystemLogic.java @@ -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; - } + Integer group = RedisUtil.getInstence().getMapValue(RedisKey.SERVER_SPLIT_INFO, "", String.valueOf(GameApplication.serverId), Integer.class); + crossGroup = group==null?-1:group; + return crossGroup; }