记得上下班打卡 | git大法好,push需谨慎

Commit b9dbea9f authored by zhoujianping's avatar zhoujianping

增加用户实名校验验证三要素或者二要素 工具类

parent 50e5ea8b
...@@ -316,6 +316,8 @@ public class AdamUserController { ...@@ -316,6 +316,8 @@ public class AdamUserController {
return ResponseDto.success(vo); return ResponseDto.success(vo);
} }
// @ApiOperationSupport(order = 6) // @ApiOperationSupport(order = 6)
// @ApiOperation(value = "密码修改") // @ApiOperation(value = "密码修改")
// @ApiImplicitParams({ // @ApiImplicitParams({
...@@ -518,7 +520,35 @@ public class AdamUserController { ...@@ -518,7 +520,35 @@ public class AdamUserController {
String currentMobile = (String) CurrentUtil.getTokenClaims().get(CurrentUtil.TOKEN_MOBILE); String currentMobile = (String) CurrentUtil.getTokenClaims().get(CurrentUtil.TOKEN_MOBILE);
return mobile.equals(currentMobile) ? ResponseDto.success() : ResponseDto.failure(ErrorMapping.get("10003")); return mobile.equals(currentMobile) ? ResponseDto.success() : ResponseDto.failure(ErrorMapping.get("10003"));
} }
/*
* @description: 用户实名校验验证三要素或者二要素
* @author: zjp
* @date: 2025/3/28 13:31
* @param: []
* @return: void
**/
@ApiOperationSupport(order = 7)
@ApiOperation(value = "用户实名校验验证三要素或者二要素")
@PostMapping(value = {"identityHandler"})
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "name", value = "姓名", required = false),
@ApiImplicitParam(type = "query", dataType = "String", name = "idCard", value = "身份证号", required = false),
@ApiImplicitParam(type = "query", dataType = "String", name = "mobile", value = "手机号",required = false),
@ApiImplicitParam(type = "query", dataType = "Integer", name = "type", value = "校验类型 1三要素 2二要素 ",required = true)
})
public void identityHandler( @RequestParam(value = "name",required = false) String name,
@RequestParam(value = "idCard",required = false) String idCard,
@RequestParam(value = "mobile", required = false) String mobile,
@RequestParam(value = "type") Integer type
) {
if(type==1){
adamRdmService.identityHandler3(name, idCard, mobile);
}else {
adamRdmService.identityHandler1(null,idCard,mobile);
}
}
/* ---------------------------- Internal Method ---------------------------- */ /* ---------------------------- Internal Method ---------------------------- */
private static final String PHP_API_SMS_CODE_VALID = "/smsValidation"; private static final String PHP_API_SMS_CODE_VALID = "/smsValidation";
......
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