修改判断条件
parent
666fdbf3ab
commit
e27d30a3f0
|
|
@ -595,9 +595,9 @@ public class GroupRoomService {
|
||||||
int gameId1 = resData.getInt("gameId");
|
int gameId1 = resData.getInt("gameId");
|
||||||
String robot_host = null;
|
String robot_host = null;
|
||||||
if(gameId1!=0) {
|
if(gameId1!=0) {
|
||||||
if (gameId1 == 17) {
|
/*if (gameId1 == 17) {
|
||||||
robot_host = "8.138.120.132:8917";
|
robot_host = "8.138.120.132:8917";
|
||||||
}
|
}*/
|
||||||
if (gameId1 == 22) {
|
if (gameId1 == 22) {
|
||||||
robot_host = "8.138.120.132:8722";
|
robot_host = "8.138.120.132:8722";
|
||||||
}
|
}
|
||||||
|
|
@ -1096,16 +1096,14 @@ public class GroupRoomService {
|
||||||
String gameId1 = jedis11.hget("g{383709}:play:"+pid,"gameId");
|
String gameId1 = jedis11.hget("g{383709}:play:"+pid,"gameId");
|
||||||
String robot_host = null;
|
String robot_host = null;
|
||||||
if(StringUtil.isNotEmpty(gameId1)) {
|
if(StringUtil.isNotEmpty(gameId1)) {
|
||||||
if (Integer.parseInt(gameId1) == 17) {
|
/*if (Integer.parseInt(gameId1) == 17) {
|
||||||
robot_host = "8.138.120.132:8917";
|
robot_host = "8.138.120.132:8917";
|
||||||
}
|
}*/
|
||||||
if (Integer.parseInt(gameId1) == 22) {
|
if (Integer.parseInt(gameId1) == 22) {
|
||||||
robot_host = "8.138.120.132:8722";
|
robot_host = "8.138.120.132:8722";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (StringUtil.isNotEmpty(gameId1) && StringUtil.isNotEmpty(robot_host)) {
|
||||||
|
|
||||||
if (StringUtil.isNotEmpty(gameId1)) {
|
|
||||||
String roomid = resData.getString("room_id");
|
String roomid = resData.getString("room_id");
|
||||||
String playersStr = jedis0.hget("room:" + roomid, "players");
|
String playersStr = jedis0.hget("room:" + roomid, "players");
|
||||||
//String players = playersStr.substring(1, playersStr.length() - 1);
|
//String players = playersStr.substring(1, playersStr.length() - 1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue