diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java index 3afcafe..7d6757f 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java @@ -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 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 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}") diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java index a4bb671..868b9d0 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java @@ -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 userRealNames = userRealNameDao.checkExist(user.getUserId());