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);