From 334e782602ea170d27ebccdc18f525ee14325080 Mon Sep 17 00:00:00 2001 From: zhangshanxue Date: Wed, 29 Jul 2020 20:30:06 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E7=99=BD=E5=90=8D=E5=8D=95=E6=B5=8B?= =?UTF-8?q?=E8=AF=95"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ebd0a8407cf7a0b5cd3e3284ba5e25561f325319. --- .../java/com/ljsd/controller/GetServerListController.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/ljsd/controller/GetServerListController.java b/src/main/java/com/ljsd/controller/GetServerListController.java index bbe3c55..86db14d 100644 --- a/src/main/java/com/ljsd/controller/GetServerListController.java +++ b/src/main/java/com/ljsd/controller/GetServerListController.java @@ -56,10 +56,6 @@ public class GetServerListController extends HttpServlet { req.put("plat", plat); req.put("server_version", Integer.valueOf(server_version)); - - DBObject req2 = new BasicDBObject(); - req.put("white_openid", openId); - List serverList = new ArrayList<>(); long local = System.currentTimeMillis(); // if ((local - lastRefreshTime) > 10 * 1000 || serverInfosCache.isEmpty()) { @@ -67,7 +63,6 @@ public class GetServerListController extends HttpServlet { lastRefreshTime = local; recommend = ""; - List whiteListCacheList = BaseGlobal.getInstance().mongoDBPool.find(_WHITE_LIST, req2); whiteListCache = BaseGlobal.getInstance().mongoDBPool.findOne(_WHITE_LIST, openId); List serverInfoList = BaseGlobal.getInstance().mongoDBPool.find(_COLLECTION_NAME, req); @@ -89,7 +84,7 @@ public class GetServerListController extends HttpServlet { //state String server_id=serverInfo.get("server_id").toString(); int num = getOnlineNum(server_id); - if (whiteListCacheList != null &&whiteListCacheList.size()!=0&& state == 1) { + if (whiteListCache != null && state == 1) { state = 2; } else { if (state == 5) {