From 185723b3455885a923681f005498c89e6a9ff84f Mon Sep 17 00:00:00 2001 From: pikaqiudeshujia Date: Sat, 11 May 2024 09:14:44 +0800 Subject: [PATCH] =?UTF-8?q?release-=20=E9=BB=98=E8=AE=A4=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E8=AF=81=E5=90=8E=E8=87=AA=E5=8A=A8=E5=AE=9E?= =?UTF-8?q?=E5=90=8D=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/user/controller/MyController.java | 8 ++++---- .../main/java/com/luoo/user/service/UserInfoService.java | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) 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());