白名单

master
zhangshanxue 2019-09-02 15:53:05 +08:00
parent 0504ed3c60
commit 15a556af40
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public class GetServerListController extends HttpServlet {
String sub_channel = request.getParameter("sub_channel");
String plat = request.getParameter("plat");
DBObject req = new BasicDBObject();
//DBObject whiteList = BaseGlobal.getInstance().mongoDBPool.findOne(_WHITE_LIST,openId);
DBObject whiteList = BaseGlobal.getInstance().mongoDBPool.findOne(_WHITE_LIST,openId);
req.put("channel", channel);
req.put("sub_channel", sub_channel);
req.put("plat", plat);
@ -55,9 +55,9 @@ public class GetServerListController extends HttpServlet {
if (state == 0 ){
continue;
}
/* if (whiteList != null && state ==1){
if (whiteList != null && state ==1){
state = 2;
}*/
}
DBObject res = new BasicDBObject();
res.put("name", serverInfo.get("name"));
res.put("server_id", serverInfo.get("server_id"));