master
xuexinpeng 2021-12-02 16:47:00 +08:00
parent 99d6317057
commit 449b7957fe
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,8 @@ import com.ljsd.util.BaseGlobal;
import com.ljsd.util.StringUtils;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
@ -25,6 +27,7 @@ public class GetServerListController extends HttpServlet {
private static volatile DBObject whiteListCache = new BasicDBObject();
private static volatile String recommend = "";//推荐列表
private static volatile long lastRefreshTime = 0;
private static final Logger LOGGER = LoggerFactory.getLogger(GetServerListController.class);
public GetServerListController() {
super();
@ -47,9 +50,12 @@ public class GetServerListController extends HttpServlet {
String sub_channel = request.getParameter("sub_channel");
String server_version = request.getParameter("server_version");
String plat = request.getParameter("plat");
LOGGER.error("channel0"+channel);
if(channel.equals("QUICK2")){
channel ="QUICK";
LOGGER.error("channel1"+channel);
}
LOGGER.error("channel2"+channel);
if (StringUtils.checkIsEmpty(openId) || StringUtils.checkIsEmpty(channel) ||
StringUtils.checkIsEmpty(sub_channel) || StringUtils.checkIsEmpty(plat) || StringUtils.checkIsEmpty(server_version)) {
response.sendError(400, "parm is wrong");