Commit 976a7e6c by ddx

add quickLogin interface

parent d37ae891
......@@ -246,7 +246,8 @@ public class TokenConstants {
*/
public static final String ZONE_FLAG_YES = "1";
/**99-发票云 01-电子税局*/
/**99-发票云 01-电子税局 02-快捷登录*/
public static final String FUNCTION_NO_FPY = "99";
public static final String FUNCTION_NO_DZSJ = "01";
public static final String FUNCTION_NO_KJDL = "02";
}
......@@ -69,6 +69,20 @@ public class TokenController extends BaseClientController {
return tokenService.getRealCookie(uuId, cookieReq.getTaxno(), cookieReq.getZoneCode(), cookieReq.getAccessKeyID(), true, TokenConstants.FUNCTION_NO_FPY, cookieReq.getUserInfoJson(), cookieReq.getCheckType(), cookieReq.getSite(), cookieReq.getTarget());
}
@RequestMapping(value ={"/quickLogin"} , method = RequestMethod.POST)
@LogT
public JsonResult<String>quickLogin(@RequestBody CookieReq cookieReq){
CrRpcResult crRpcResult = userClient.isSafe(cookieReq);
if(!checkUserSafe(crRpcResult)){
return JsonResult.errorResult(crRpcResult.getCode(),crRpcResult.getMessage());
}
if(cookieReq.checkParamNull() || !ZoneUtil.dqList.contains(cookieReq.getZoneCode())) {
return JsonResult.errorResult(ResultEnum.param_error.getCode(), ResultEnum.param_error.getMessage());
}
String uuId = UUIDGenerator.generate();
return tokenService.getRealCookie(uuId, cookieReq.getTaxno(), cookieReq.getZoneCode(), cookieReq.getAccessKeyID(), true, TokenConstants.FUNCTION_NO_KJDL, cookieReq.getUserInfoJson(), cookieReq.getCheckType(), cookieReq.getSite(), cookieReq.getTarget());
}
@RequestMapping(value ={"/getEtaxCookie", "/checkEtaxLoginInfo"} , method = RequestMethod.POST)
@LogT
public JsonResult<String>getEtaxCookie(@RequestBody CookieReq cookieReq){
......
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