shish 4 місяців тому
батько
коміт
2ed87fb699
1 змінених файлів з 9 додано та 3 видалено
  1. 9 3
      app-ghs/controllers/CustomController.php

+ 9 - 3
app-ghs/controllers/CustomController.php

@@ -231,7 +231,7 @@ class CustomController extends BaseController
             }
             //泉城花卉批发,只有指定人才能结账
             if (in_array($this->shopId, [447])) {
-                if (!in_array($this->adminId, [1398,2448,2457,2499,82260])) {
+                if (!in_array($this->adminId, [1398, 2448, 2457, 2499, 82260])) {
                     util::fail('不能充值销账,请联系小娟');
                 }
             }
@@ -828,7 +828,7 @@ class CustomController extends BaseController
         if (getenv('YII_ENV') == 'production') {
             //源花汇,只有指定的人,才能看累计消费和挂账金额,有多处要同步修改 manage_custom_data
             $hideMainId = 10536;
-            $hideAdminIds = [18505, 15187, 11961, 11648, 11644, 11641, 11976,22534, 4];
+            $hideAdminIds = [18505, 15187, 11961, 11648, 11644, 11641, 11976, 22534, 4];
         } else {
             $hideMainId = 0;
             $hideAdminIds = [0];
@@ -884,7 +884,7 @@ class CustomController extends BaseController
         if (getenv('YII_ENV') == 'production') {
             //源花汇,只有指定的人,才能看累计消费和挂账金额,有多处要同步修改 manage_custom_data
             $hideMainId = 10536;
-            $hideAdminIds = [18505, 15187, 11961, 11648, 11644, 11641, 11976,22534, 4];
+            $hideAdminIds = [18505, 15187, 11961, 11648, 11644, 11641, 11976, 22534, 4];
         } else {
             $hideMainId = 0;
             $hideAdminIds = [0];
@@ -1121,6 +1121,12 @@ class CustomController extends BaseController
                     util::fail('请闵总修改');
                 }
             }
+            //惠雅6号线
+            if ($this->mainId == 2128) {
+                if ($this->adminId == 3407) {
+                    util::fail('无法修改');
+                }
+            }
         }
 
         $get = Yii::$app->request->get();