bihuisong 1 éve
szülő
commit
ba2f655c85

+ 2 - 1
zhsq_qk-common/src/main/java/zhsq_qk/common/core/domain/entity/SysUser.java

@@ -136,7 +136,8 @@ public class SysUser extends BaseEntity {
     }
 
     public static boolean isAdmin(Long userId) {
-        return userId != null && (1L == userId || 20230316036L == userId);
+//        return userId != null && (1L == userId || 20230316036L == userId);
+        return userId != null && 1L == userId;
     }
 
     public Long getUserId() {

+ 2 - 1
zhsq_qk-common/src/main/java/zhsq_qk/common/utils/SecurityUtils.java

@@ -102,7 +102,8 @@ public class SecurityUtils {
      * @return 结果
      */
     public static boolean isAdmin(Long userId) {
-        return userId != null && (1L == userId || 20230316036L == userId);
+//        return userId != null && (1L == userId || 20230316036L == userId);
+        return userId != null && 1L == userId;
     }
 
     /**