Commit 64a8f4c2 by ddx

d

parent 544357b1
......@@ -17,6 +17,7 @@ public class CookieReq extends SafeModel implements MqMessage {
private String loginType;
private String loginName;
private String checkType;
private String cleanType;
private String site;
private String target;
private Object userInfoJson;
......@@ -32,6 +33,7 @@ public class CookieReq extends SafeModel implements MqMessage {
", loginType='" + loginType + '\'' +
", loginName='" + loginName + '\'' +
", checkType='" + checkType + '\'' +
", cleanType='" + cleanType + '\'' +
", site='" + site + '\'' +
", target='" + target + '\'' +
", userInfoJson=" + userInfoJson +
......
......@@ -198,20 +198,10 @@ public class TokenController extends BaseClientController {
}
cookieReq.setUserCode(cookieReq.getAccessKeyID());
String uuId = UUIDGenerator.generate();
JsonResult<String> jsonResult = tokenService.cleanCookie(uuId, cookieReq, "2");
return jsonResult;
}
@RequestMapping(value ={ "/cleanQuickLoginInfo"} , method = RequestMethod.POST)
@LogT
public JsonResult<String> cleanQuickLoginInfo(@RequestBody CookieReq cookieReq){
CrRpcResult crRpcResult = userClient.isSafe(cookieReq);
if(!checkUserSafe(crRpcResult)){
return JsonResult.errorResult(crRpcResult.getCode(),crRpcResult.getMessage());
if(StringUtil.isEmpty(cookieReq.getCleanType())) {
cookieReq.setCleanType("2");
}
cookieReq.setUserCode(cookieReq.getAccessKeyID());
String uuId = UUIDGenerator.generate();
JsonResult<String> jsonResult = tokenService.cleanCookie(uuId, cookieReq, "13");
JsonResult<String> jsonResult = tokenService.cleanCookie(uuId, cookieReq, cookieReq.getCleanType());
return jsonResult;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment