登录服白名单

zhangshanxue 2020-08-17 02:20:24 +08:00
parent 21f1efbb5e
commit 213e323fc7
1 changed files with 4 additions and 1 deletions

View File

@ -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<num){
maxNum = num;
maxNumServerId = server_id;