diff --git a/src/main/java/com/ljsd/controller/GetServerListController.java b/src/main/java/com/ljsd/controller/GetServerListController.java index 30ebe21..5a54d13 100644 --- a/src/main/java/com/ljsd/controller/GetServerListController.java +++ b/src/main/java/com/ljsd/controller/GetServerListController.java @@ -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"));