From e27d30a3f0eb6b6686f7f6e7311aeb8e4bacfc2c Mon Sep 17 00:00:00 2001 From: zhouwei <849588297@qq.com> Date: Fri, 10 Jul 2026 01:17:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/group/service/GroupRoomService.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/web_group/src/main/java/com/group/service/GroupRoomService.java b/web_group/src/main/java/com/group/service/GroupRoomService.java index a923cc4..1aac8bf 100644 --- a/web_group/src/main/java/com/group/service/GroupRoomService.java +++ b/web_group/src/main/java/com/group/service/GroupRoomService.java @@ -595,9 +595,9 @@ public class GroupRoomService { int gameId1 = resData.getInt("gameId"); String robot_host = null; if(gameId1!=0) { - if (gameId1 == 17) { + /*if (gameId1 == 17) { robot_host = "8.138.120.132:8917"; - } + }*/ if (gameId1 == 22) { robot_host = "8.138.120.132:8722"; } @@ -1096,16 +1096,14 @@ public class GroupRoomService { String gameId1 = jedis11.hget("g{383709}:play:"+pid,"gameId"); String robot_host = null; if(StringUtil.isNotEmpty(gameId1)) { - if (Integer.parseInt(gameId1) == 17) { + /*if (Integer.parseInt(gameId1) == 17) { robot_host = "8.138.120.132:8917"; - } + }*/ if (Integer.parseInt(gameId1) == 22) { robot_host = "8.138.120.132:8722"; } - - - if (StringUtil.isNotEmpty(gameId1)) { + if (StringUtil.isNotEmpty(gameId1) && StringUtil.isNotEmpty(robot_host)) { String roomid = resData.getString("room_id"); String playersStr = jedis0.hget("room:" + roomid, "players"); //String players = playersStr.substring(1, playersStr.length() - 1);