Commit e4abedc3 by 段启岩

动态删除修复

parent 2b077b31
...@@ -18,6 +18,7 @@ import cn.meteor.beyondclouds.modules.user.entity.UserBlacklist; ...@@ -18,6 +18,7 @@ import cn.meteor.beyondclouds.modules.user.entity.UserBlacklist;
import cn.meteor.beyondclouds.modules.user.entity.UserStatistics; import cn.meteor.beyondclouds.modules.user.entity.UserStatistics;
import cn.meteor.beyondclouds.modules.user.enums.AccountType; import cn.meteor.beyondclouds.modules.user.enums.AccountType;
import cn.meteor.beyondclouds.modules.user.enums.AuthType; import cn.meteor.beyondclouds.modules.user.enums.AuthType;
import cn.meteor.beyondclouds.modules.user.enums.UserErrorCode;
import cn.meteor.beyondclouds.modules.user.exception.UserServiceException; import cn.meteor.beyondclouds.modules.user.exception.UserServiceException;
import cn.meteor.beyondclouds.modules.user.form.*; import cn.meteor.beyondclouds.modules.user.form.*;
import cn.meteor.beyondclouds.modules.user.service.IUserBlacklistService; import cn.meteor.beyondclouds.modules.user.service.IUserBlacklistService;
...@@ -85,7 +86,9 @@ public class UserApi { ...@@ -85,7 +86,9 @@ public class UserApi {
@ApiOperation("邮箱注册") @ApiOperation("邮箱注册")
@PostMapping("/user/register/email") @PostMapping("/user/register/email")
public Response emailRegister(@RequestBody @Valid EmailRegisterFrom registerFrom, BindingResult result) { public Response emailRegister(@RequestBody @Valid EmailRegisterFrom registerFrom, BindingResult result) {
if (true) {
return Response.error(UserErrorCode.EMAIL_CLOSED);
}
if (result.hasErrors()) { if (result.hasErrors()) {
return Response.fieldError(result.getFieldError()); return Response.fieldError(result.getFieldError());
} }
......
...@@ -30,7 +30,8 @@ public enum UserErrorCode implements IErrorCode { ...@@ -30,7 +30,8 @@ public enum UserErrorCode implements IErrorCode {
USER_NOT_EXISTS(130017, "要查看的用户不存在"), USER_NOT_EXISTS(130017, "要查看的用户不存在"),
USER_NICK_NAME_USED(130018,"该昵称已存在"), USER_NICK_NAME_USED(130018,"该昵称已存在"),
NICK_MODIFY_UPPER_LIMIT(130019, "本月昵称修改次数已达上限"), NICK_MODIFY_UPPER_LIMIT(130019, "本月昵称修改次数已达上限"),
USER_DISABLED(130020, "您已被封号,请联系管理员解封"); USER_DISABLED(130020, "您已被封号,请联系管理员解封"),
EMAIL_CLOSED(130060, "邮箱注册通过暂时关闭");
UserErrorCode(long code, String msg) { UserErrorCode(long code, String msg) {
this.code = code; this.code = code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment