release- 默认上传身份证后自动实名认证

release-2024-08-08
pikaqiudeshujia 7 months ago
parent 147d3bd118
commit 185723b345

@ -559,8 +559,8 @@ public class MyController extends BaseController {
return Result.success();
}
@ApiOperation(value = "15.2 审核实名认证")
@PostMapping("/check/real/name")
@ApiOperation(value = "15.2 审核实名认证-废弃")
@PostMapping("/check/real/name-废弃")
public Result<Void> checkRealName(@RequestHeader(value = "Authorization", required = true) String authorization,
@Validated @RequestBody UserRealNameCheckDto userRealNameCheckDto) {
userInfoService.checkRealName(authorization, userRealNameCheckDto);
@ -575,7 +575,7 @@ public class MyController extends BaseController {
return Result.success();
}
@ApiOperation(value = "15.4 获取实名认证详情")
@ApiOperation(value = "15.4 获取实名认证详情-废弃")
@GetMapping("/get/real/name/{id}")
public Result<UserRealName> getUserRealName(
@RequestHeader(value = "Authorization", required = true) String authorization,
@ -583,7 +583,7 @@ public class MyController extends BaseController {
return Result.success(userInfoService.getUserRealName(id));
}
@ApiOperation(value = "15.5 查询实名认证列表")
@ApiOperation(value = "15.5 查询实名认证列表-废弃")
@ApiImplicitParams({@ApiImplicitParam(name = "pageNum", value = "分页: 页码以1开始", required = true),
@ApiImplicitParam(name = "pageSize", value = "分页: 每页数量", required = true)})
@GetMapping("/real/name/{pageNum}/{pageSize}")

@ -447,7 +447,9 @@ public class UserInfoService {
// 用户校验失败,请重新登录
throw new BizException(ErrorConstants.USER_VERIFICATION_FAILURE);
}
userRealName.setState(UserRealNameStateEnum.CREATE.getCode());
// 按业务要求提交后直接是审核通过或不通过
// todo 需要集成第三方审核服务
userRealName.setState(UserRealNameStateEnum.PASS.getCode());
// 校验是否允许
List<UserRealName> userRealNames = userRealNameDao.checkExist(user.getUserId());

Loading…
Cancel
Save