shish 2 years ago
parent
commit
fb9ea4c1d4
1 changed files with 8 additions and 8 deletions
  1. 8 8
      app-ghs/controllers/CheckOrderController.php

+ 8 - 8
app-ghs/controllers/CheckOrderController.php

@@ -95,14 +95,6 @@ class CheckOrderController extends BaseController
         if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
             util::fail('超管才能盘点');
         }
-
-        //限制花大苪文员修改库存
-        if (in_array($this->mainId, [8164])) {
-            if (in_array($this->adminId, [10771, 26263, 4])) {
-                util::fail('不能修改哦');
-            }
-        }
-
         $post = Yii::$app->request->post();
         $post['sjId'] = $this->sjId;
         $post['shopId'] = $this->shopId;
@@ -183,6 +175,14 @@ class CheckOrderController extends BaseController
         if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
             util::fail('超管才能操作');
         }
+
+        //限制花大苪文员修改库存
+        if (in_array($this->mainId, [8164])) {
+            if (in_array($this->adminId, [10771, 26263, 4])) {
+                util::fail('不能修改哦');
+            }
+        }
+
         $ghsItemInfo = $post['itemInfo'] ?? '';
         if (empty($ghsItemInfo)) {
             util::fail('请选择花材');