generated from root/miduo_server
fix getuser
parent
9fd10928ad
commit
0504ed3c60
|
|
@ -2,10 +2,7 @@ package com.ljsd.controller;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.ljsd.redis.RedisKey;
|
import com.ljsd.redis.RedisKey;
|
||||||
import com.ljsd.util.BaseGlobal;
|
import com.ljsd.util.*;
|
||||||
import com.ljsd.util.EncryptUtils;
|
|
||||||
import com.ljsd.util.HttpUtils;
|
|
||||||
import com.ljsd.util.KTSDKConstans;
|
|
||||||
import com.mongodb.BasicDBObject;
|
import com.mongodb.BasicDBObject;
|
||||||
import com.mongodb.DBObject;
|
import com.mongodb.DBObject;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
@ -61,8 +58,14 @@ public class GetUserController extends HttpServlet {
|
||||||
response.sendError(400, "platform is empety");
|
response.sendError(400, "platform is empety");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
String admin = request.getParameter("admin"); //平台类型
|
||||||
|
/*if (StringUtils.checkIsEmpty(admin)) {
|
||||||
|
response.sendError(400, "platform is empety");
|
||||||
|
return;
|
||||||
|
}*/
|
||||||
LOGGER.info("the opendId = {},token={},platform={}",openId,token,platform);
|
LOGGER.info("the opendId = {},token={},platform={}",openId,token,platform);
|
||||||
try {
|
try {
|
||||||
|
if(!KTSDKConstans.appsecret.equals(admin)){
|
||||||
if(isTestLan==1){
|
if(isTestLan==1){
|
||||||
boolean result = loginVerfifyByTestLan(openId, token);
|
boolean result = loginVerfifyByTestLan(openId, token);
|
||||||
if(!result){
|
if(!result){
|
||||||
|
|
@ -76,6 +79,7 @@ public class GetUserController extends HttpServlet {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
response.setCharacterEncoding("UTF-8");
|
response.setCharacterEncoding("UTF-8");
|
||||||
response.setContentType("application/json; charset=utf-8");
|
response.setContentType("application/json; charset=utf-8");
|
||||||
DBObject dbObject = new BasicDBObject();
|
DBObject dbObject = new BasicDBObject();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue