新账号注销提示
This commit is contained in:
parent
e5ee364c9a
commit
b7671d5963
@ -229,6 +229,11 @@ public enum UserErrorCode implements IResponseErrorCode {
|
|||||||
*/
|
*/
|
||||||
BLACK_USER(4076, "The current user has been blocked and cannot follow."),
|
BLACK_USER(4076, "The current user has been blocked and cannot follow."),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 账号已注销
|
||||||
|
*/
|
||||||
|
ACCOUNT_LOGOUT(4077, "Account has been deactivated"),
|
||||||
|
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -390,7 +390,7 @@ public class UserAccountClientServiceImpl implements UserAccountClientService {
|
|||||||
|
|
||||||
// 注册黑名单
|
// 注册黑名单
|
||||||
if (Objects.equals(userProfile.getDel(), Boolean.TRUE)) {
|
if (Objects.equals(userProfile.getDel(), Boolean.TRUE)) {
|
||||||
ResponseAssert.failure(UserErrorCode.REGISTER_BLACKLIST);
|
ResponseAssert.failure(UserErrorCode.ACCOUNT_LOGOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查账号是否被封禁
|
// 检查账号是否被封禁
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user