shish 2 年 前
コミット
a7efe4dc76

+ 15 - 1
app-ghs/controllers/GhsController.php

@@ -166,8 +166,22 @@ class GhsController extends BaseController
         if (is_numeric($location)) {
             $where['location'] = $location;
         }
-        $list = GhsClass::getGhsList($where);
 
+        if (getenv('YII_ENV') == 'production') {
+            if ($this->mainId == 10) {
+                if (in_array($this->adminId, [37, 988, 14346]) == false) {
+                    util::fail('没有数据哦');
+                }
+            }
+        } else {
+            if ($this->mainId == 644) {
+                if (in_array($this->adminId, [91]) == false) {
+                    util::fail('没有数据哦');
+                }
+            }
+        }
+
+        $list = GhsClass::getGhsList($where);
         $staff = $this->shopAdmin;
         if (isset($staff->finance) == false || $staff->finance == 0) {
             $totalDebtAmount = 0;

+ 15 - 0
app-ghs/controllers/PurchaseOrderController.php

@@ -510,6 +510,21 @@ class PurchaseOrderController extends BaseController
         if (is_numeric($location)) {
             $where['location'] = $location;
         }
+
+        if (getenv('YII_ENV') == 'production') {
+            if ($this->mainId == 10) {
+                if (in_array($this->adminId, [37, 988, 14346]) == false) {
+                    util::fail('没有数据哦');
+                }
+            }
+        } else {
+            if ($this->mainId == 644) {
+                if (in_array($this->adminId, [91]) == false) {
+                    util::fail('没有数据哦');
+                }
+            }
+        }
+
         $data = PurchaseOrderClass::getOrderList($where);
         //状态统计,很慢,暂时隐藏
         //$statData = PurchaseOrderClass::statNum($this->shopId);