提交 4a77ebd3 作者: zhenjie

修改账号修复

上级 0c900db8
......@@ -34,6 +34,7 @@ public enum ResultEnum implements BaseErrorInfoInterface {
COOPERATION_CHECK_NOT_PASS_ERROR("5016", "审核失败,请联系管理人员!"),
REBINDING_COMPANY_ERROR("5017", "该用户已被企业绑定,请尝试让该用户解绑后再重试!"),
MEMBER_APPLY_ERROR("5018", "企业成员暂不能提交加盟申请!"),
FORBID_USE_ERROR("5018", "账号禁用"),
//微信相关
PASSWORD_INCONSISTENT("5026", "新密码与确认密码不一致,请确认一致"),
......
......@@ -47,6 +47,7 @@ public class BackUserAccountDO implements Serializable {
this.districtCode = bUserAccountVO.getDistrictCode();
this.remark = bUserAccountVO.getRemark();
this.address = bUserAccountVO.getAddress();
this.accountStatus = bUserAccountVO.getAccountStatus();
}
public BackUserAccountVO buildBackUserAccountVO() {
......
......@@ -127,7 +127,7 @@ public class AuthServiceImpl implements AuthService {
return ResultBody.error(ResultEnum.LOGIN_ACCOUNT_NOT_EXIT_ERROR);
}
if (user.getAccountStatus().equals(UserAccountStatus.DISABLE.getAccountStatus())) {
return ResultBody.error(ResultEnum.LOGIN_ACCOUNT_STATUS_ERROR);
return ResultBody.error(ResultEnum.FORBID_USE_ERROR);
}
String loginPwd = "";
try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论