From b7671d59634d5489052df34d1dadd1c914ab2839 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 23 Jan 2026 14:46:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=B4=A6=E5=8F=B7=E6=B3=A8=E9=94=80?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../red/circle/other/inner/asserts/user/UserErrorCode.java | 5 +++++ .../service/user/user/impl/UserAccountClientServiceImpl.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java index e6fba180..d9bdf03f 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/asserts/user/UserErrorCode.java @@ -229,6 +229,11 @@ public enum UserErrorCode implements IResponseErrorCode { */ BLACK_USER(4076, "The current user has been blocked and cannot follow."), + /** + * 账号已注销 + */ + ACCOUNT_LOGOUT(4077, "Account has been deactivated"), + ; diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java index 91578f7f..47a6a492 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/user/user/impl/UserAccountClientServiceImpl.java @@ -390,7 +390,7 @@ public class UserAccountClientServiceImpl implements UserAccountClientService { // 注册黑名单 if (Objects.equals(userProfile.getDel(), Boolean.TRUE)) { - ResponseAssert.failure(UserErrorCode.REGISTER_BLACKLIST); + ResponseAssert.failure(UserErrorCode.ACCOUNT_LOGOUT); } // 检查账号是否被封禁