Browse Source

用户审核提示开启

785834757 2 years ago
parent
commit
13fe807808
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/java/com/ydtech/modules/admin/model/SysUser.java

+ 4 - 4
src/main/java/com/ydtech/modules/admin/model/SysUser.java

@@ -220,10 +220,10 @@ public class SysUser extends BaseEntity {
         if (user.getStatus() == 0) {
             throw new SystemException("账号已被锁定,请联系管理员");
         }
-//        // 新注册用户需要审核
-//        if (user.getStatus() == 2) {
-//            throw new SystemException("新注册用户需要审核,请联系管理员");
-//        }
+        // 新注册用户需要审核
+        if (user.getStatus() == 2) {
+            throw new SystemException("新注册用户需要审核,请联系管理员");
+        }
         // 新注册用户审核不通过
         if (user.getStatus() == 3) {
             throw new SystemException("新注册用户审核不通过,请联系管理员");