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.ljsd.redis.RedisKey;
|
||||
import com.ljsd.util.BaseGlobal;
|
||||
import com.ljsd.util.EncryptUtils;
|
||||
import com.ljsd.util.HttpUtils;
|
||||
import com.ljsd.util.KTSDKConstans;
|
||||
import com.ljsd.util.*;
|
||||
import com.mongodb.BasicDBObject;
|
||||
import com.mongodb.DBObject;
|
||||
import org.slf4j.Logger;
|
||||
|
|
@ -61,19 +58,26 @@ public class GetUserController extends HttpServlet {
|
|||
response.sendError(400, "platform is empety");
|
||||
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);
|
||||
try {
|
||||
if(isTestLan==1){
|
||||
boolean result = loginVerfifyByTestLan(openId, token);
|
||||
if(!result){
|
||||
response.sendError(400, "verify fail");
|
||||
return;
|
||||
}
|
||||
}else if(!"3".equals(platform)){
|
||||
boolean result = loginVerfify(platform, openId, token);
|
||||
if(!result){
|
||||
response.sendError(400, "verify fail");
|
||||
return;
|
||||
if(!KTSDKConstans.appsecret.equals(admin)){
|
||||
if(isTestLan==1){
|
||||
boolean result = loginVerfifyByTestLan(openId, token);
|
||||
if(!result){
|
||||
response.sendError(400, "verify fail");
|
||||
return;
|
||||
}
|
||||
}else if(!"3".equals(platform)){
|
||||
boolean result = loginVerfify(platform, openId, token);
|
||||
if(!result){
|
||||
response.sendError(400, "verify fail");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
response.setCharacterEncoding("UTF-8");
|
||||
|
|
|
|||
Loading…
Reference in New Issue