shish 1 rok temu
rodzic
commit
f16cc10022
1 zmienionych plików z 3 dodań i 10 usunięć
  1. 3 10
      biz/admin/classes/AdminClass.php

+ 3 - 10
biz/admin/classes/AdminClass.php

@@ -31,16 +31,9 @@ class AdminClass extends BaseClass
     //获取平台的超级管理员 ssh 20231005
     public static function getPtSuperAdminId()
     {
-        //如果模拟成别人的账号,就取消超管的能力
-        $simulateKey = 'simulate_admin_id';
-        $simulateId = Yii::$app->redis->executeCommand('GET', [$simulateKey]);
-        if (!empty($simulateId)) {
-            $adminId = 0;
-        } else {
-            $adminId = 919;
-            if (getenv('YII_ENV') == 'production') {
-                $adminId = 4;
-            }
+        $adminId = 919;
+        if (getenv('YII_ENV') == 'production') {
+            $adminId = 4;
         }
         return $adminId;
     }