|
@@ -395,6 +395,41 @@ public class EsignController extends ApiBaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation(value = "修改个人信息(手机号)",
|
|
|
+ notes = "参数:{" +
|
|
|
+ "userId:'123','redirectUrl':'跳转url(http://baidu.com)'}" +
|
|
|
+ "错误:" +
|
|
|
+ "301 用户已经注册且认证" +
|
|
|
+ "500 注册失败" +
|
|
|
+ "")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "params" , paramType = "body")
|
|
|
+ })
|
|
|
+ @ApiPassToken
|
|
|
+ @PostMapping("/updatePersonalAccount")
|
|
|
+ public Object updatePersonalAccount(){
|
|
|
+ ParameterObject obj = getParameterObject();
|
|
|
+ //判断参数
|
|
|
+// obj.checkParameterNotNull("userId,redirectUrl");
|
|
|
+ String userId = obj.getString("userId");
|
|
|
+ String phone = obj.getString("phone");
|
|
|
+ String accountId = obj.getString("accountId");
|
|
|
+ String redirectUrl = obj.getString("redirectUrl");
|
|
|
+ logger.info("个人认证2结束后页面跳转地址:{}",redirectUrl);
|
|
|
+ //根据用户loginName查询用户信息
|
|
|
+ SysUser user = new SysUser();
|
|
|
+ user.setPhonenumber(phone);
|
|
|
+ user.setAccountId(accountId);
|
|
|
+ /*调用E签宝修改用户认证信息*/
|
|
|
+ int result = eSignService.updatePersonalAccount(user);
|
|
|
+ //获取认证路径
|
|
|
+ String url = personRealnVerifyService.personRealnVerify(user.getAccountId(),redirectUrl);
|
|
|
+ return AjaxResult.success("url",url);
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @descption: 公司注册
|
|
|
* @param:
|
|
@@ -442,7 +477,7 @@ public class EsignController extends ApiBaseController {
|
|
|
/*修改企业注册信息*/
|
|
|
// int result = eSignService.updateThirdParty(customersExt);
|
|
|
//获取认证路径
|
|
|
- String url = organRealVerifyService.organRealVerify(customersExt.getOrgId(),customersExt.getCreator(),redirectUrl);
|
|
|
+ String url = organRealVerifyService.organRealVerify(customersExt.getOrgId(),user.getAccountId(),redirectUrl);
|
|
|
return AjaxResult.success("url",url);
|
|
|
}
|
|
|
}else {//未注册
|
|
@@ -469,7 +504,7 @@ public class EsignController extends ApiBaseController {
|
|
|
}
|
|
|
if (ecustomersExt!=null) {
|
|
|
//注册完以后获取认证路径
|
|
|
- String url = organRealVerifyService.organRealVerify(ecustomersExt.getOrgId(),ecustomersExt.getCreator(),redirectUrl);
|
|
|
+ String url = organRealVerifyService.organRealVerify(ecustomersExt.getOrgId(),user.getAccountId(),redirectUrl);
|
|
|
return AjaxResult.success("url", url);
|
|
|
}else {
|
|
|
return AjaxResult.error(500,"注册失败");
|