Parcourir la source

限制花大苪文员修改库存

shish il y a 2 ans
Parent
commit
568866e82a
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      app-ghs/controllers/CheckOrderController.php

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

@@ -95,6 +95,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('不能修改哦');
+            }
+        }
+
         $post = Yii::$app->request->post();
         $post['sjId'] = $this->sjId;
         $post['shopId'] = $this->shopId;