shish 4 luni în urmă
părinte
comite
324d9906f2

+ 7 - 1
app-ghs/controllers/CustomController.php

@@ -143,7 +143,7 @@ class CustomController extends BaseController
             }
         }
 
-        //多个地方需要同步修改clear_order_power
+        //多个地方需要同步修改 clear_order_power
         if (getenv('YII_ENV') == 'production') {
             //小向花卉
             if (in_array($this->shopId, [23580, 24713])) {
@@ -229,6 +229,12 @@ class CustomController extends BaseController
                     util::fail('您不能充值销单哦,编号956');
                 }
             }
+            //泉城花卉批发,只有指定人才能结账
+            if (in_array($this->shopId, [447])) {
+                if (!in_array($this->adminId, [1398,2448,2457,2499,82260])) {
+                    util::fail('不能充值销账,请联系小娟');
+                }
+            }
         } else {
             if (in_array($this->shopId, [36523])) {
                 if ($this->adminId != 919) {

+ 6 - 0
app-ghs/controllers/OrderClearController.php

@@ -232,6 +232,12 @@ class OrderClearController extends BaseController
                 if (!in_array($this->adminId, [9303])) {
                     util::fail('只能叶荷操作');
                 }
+            }
+			//泉城花卉批发
+            if (in_array($this->shopId, [447])) {
+                if (!in_array($this->adminId, [1398,2448,2457,2499,82260])) {
+                    util::fail('不能销账,请联系小娟');
+                }
             }
         } else {
             if (in_array($this->shopId, [36523])) {