diff --git a/src/main/java/com/ljsd/controller/GetServerListController.java b/src/main/java/com/ljsd/controller/GetServerListController.java index 2861c97..a0ec438 100644 --- a/src/main/java/com/ljsd/controller/GetServerListController.java +++ b/src/main/java/com/ljsd/controller/GetServerListController.java @@ -71,7 +71,7 @@ public class GetServerListController extends HttpServlet { int maxNum = 0; for (DBObject serverInfo : serverInfoList) { int state = Integer.parseInt(serverInfo.get("state").toString()); - if (state == 0 || state == -1) { + if ( state == -1) { continue; } @@ -91,6 +91,9 @@ public class GetServerListController extends HttpServlet { state = getState(server_id,num); } } + if(state==0){ + continue; + } if(state==2&&maxNum