From 202411bba8ece1853eee9cbfaf33fa9a7be42ad5 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 17 Dec 2025 10:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=93=E5=8F=B7=E5=AE=A1=E6=A0=B8=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/UserBeautifulNumberClientServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java index 90241bb3..89b2d659 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserBeautifulNumberClientServiceImpl.java @@ -66,22 +66,20 @@ public class UserBeautifulNumberClientServiceImpl implements ResponseAssert.isTrue(CommonErrorCode.TYPE_IS_NOT_IN_SCOPE, checkState(state)); ResponseAssert.isTrue(CommonErrorCode.DATA_ERROR, beautifulNumberApply.getState() == 0); - userBeautifulNumberApplyService.handleApply(id, state); - UserRegionDTO userRegion = userRegionGateway.getUserRegion(beautifulNumberApply.getApplyUser()); String regionCode = userRegion.getRegionCode(); SystemI18nConfig applyContent; String content; if (state == 1) { + boolean exists = userSpecialIdService.exists(userRegion.getSysOrigin(), beautifulNumberApply.getApplyAccount()); + ResponseAssert.isFalse(OtherErrorCode.SPECIAL_ID_ALREADY_EXISTS, exists); + UserSpecialId userSpecialId = userSpecialIdService.getByUserId(beautifulNumberApply.getApplyUser()); if (Objects.nonNull(userSpecialId)) { userSpecialIdService.remove(userSpecialId.getId()); } - boolean exists = userSpecialIdService.exists(userRegion.getSysOrigin(), beautifulNumberApply.getApplyAccount()); - ResponseAssert.isFalse(OtherErrorCode.SPECIAL_ID_ALREADY_EXISTS, exists); - // 创建新靓号 UserSpecialId specialIdCmd = new UserSpecialId(); specialIdCmd.setSysOrigin(beautifulNumberApply.getSysOrigin()); @@ -100,6 +98,8 @@ public class UserBeautifulNumberClientServiceImpl implements remark); } + userBeautifulNumberApplyService.handleApply(id, state); + officialNoticeClient.send( NoticeExtTemplateCustomizeCmd.builder() .toAccount(beautifulNumberApply.getApplyUser())