Revert "白名单测试"

This reverts commit ebd0a8407c.
master
zhangshanxue 2020-07-29 20:30:06 +08:00
parent ebd0a8407c
commit 334e782602
1 changed files with 1 additions and 6 deletions

View File

@ -56,10 +56,6 @@ public class GetServerListController extends HttpServlet {
req.put("plat", plat); req.put("plat", plat);
req.put("server_version", Integer.valueOf(server_version)); req.put("server_version", Integer.valueOf(server_version));
DBObject req2 = new BasicDBObject();
req.put("white_openid", openId);
List<DBObject> serverList = new ArrayList<>(); List<DBObject> serverList = new ArrayList<>();
long local = System.currentTimeMillis(); long local = System.currentTimeMillis();
// if ((local - lastRefreshTime) > 10 * 1000 || serverInfosCache.isEmpty()) { // if ((local - lastRefreshTime) > 10 * 1000 || serverInfosCache.isEmpty()) {
@ -67,7 +63,6 @@ public class GetServerListController extends HttpServlet {
lastRefreshTime = local; lastRefreshTime = local;
recommend = ""; recommend = "";
List<DBObject> whiteListCacheList = BaseGlobal.getInstance().mongoDBPool.find(_WHITE_LIST, req2);
whiteListCache = BaseGlobal.getInstance().mongoDBPool.findOne(_WHITE_LIST, openId); whiteListCache = BaseGlobal.getInstance().mongoDBPool.findOne(_WHITE_LIST, openId);
List<DBObject> serverInfoList = BaseGlobal.getInstance().mongoDBPool.find(_COLLECTION_NAME, req); List<DBObject> serverInfoList = BaseGlobal.getInstance().mongoDBPool.find(_COLLECTION_NAME, req);
@ -89,7 +84,7 @@ public class GetServerListController extends HttpServlet {
//state //state
String server_id=serverInfo.get("server_id").toString(); String server_id=serverInfo.get("server_id").toString();
int num = getOnlineNum(server_id); int num = getOnlineNum(server_id);
if (whiteListCacheList != null &&whiteListCacheList.size()!=0&& state == 1) { if (whiteListCache != null && state == 1) {
state = 2; state = 2;
} else { } else {
if (state == 5) { if (state == 5) {