shish 6 месяцев назад
Родитель
Сommit
9c43583f8a
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app-ghs/controllers/CustomController.php

+ 2 - 2
app-ghs/controllers/CustomController.php

@@ -1133,14 +1133,14 @@ class CustomController extends BaseController
     public function actionChangeLevel()
     {
         $shopAdmin = $this->shopAdmin;
-        if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
+        if (!isset($shopAdmin->super) || $shopAdmin->super != 1) {
             util::fail('超管才能修改');
         }
 
         //泉城的只有苏小娟才能修改
         if (getenv('YII_ENV') == 'production') {
             if ($this->mainId == 60) {
-                if (in_array($this->adminId, [2499, 4]) == false) {
+                if (!in_array($this->adminId, [2499, 4])) {
                     util::fail('请小娟修改');
                 }
             }