shish 2 yıl önce
ebeveyn
işleme
91cea55ff0
1 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  1. 16 0
      app-ghs/controllers/PurchaseClearController.php

+ 16 - 0
app-ghs/controllers/PurchaseClearController.php

@@ -33,6 +33,22 @@ class PurchaseClearController extends BaseController
                 }
             }
         }
+
+        if (getenv('YII_ENV') == 'production') {
+            //花大苪 洋桔梗,只有叶荷姐才能销账
+            if (in_array($this->shopId, [16070])) {
+                if (!in_array($this->adminId, [9303, 4])) {
+                    util::fail('暂无权限');
+                }
+            }
+        } else {
+            if (in_array($this->shopId, [36523])) {
+                if (!in_array($this->adminId, [919])) {
+                    util::fail('暂无权限');
+                }
+            }
+        }
+
         $post['sjId'] = $this->sjId;
         $post['shopId'] = $this->shopId;
         $post['clearStyle'] = dict::getDict('clearStyle', 'gys2KmGys');