shish il y a 3 ans
Parent
commit
2437b23a69

+ 5 - 0
app-hd/controllers/StatController.php

@@ -60,6 +60,11 @@ class StatController extends BaseController
         ini_set('memory_limit', '2045M');
         set_time_limit(0);
 
+        $lookMoney = \bizGhs\shop\classes\ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
+        if ($lookMoney == 0) {
+            util::fail('没有权限查看');
+        }
+
         $shopAdmin = $this->shopAdmin;
         if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
             util::fail('超管才能查看');

+ 3 - 1
app-hd/controllers/StatKdController.php

@@ -1,8 +1,10 @@
 <?php
 
 namespace hd\controllers;
+
 use Yii;
 use common\components\util;
+
 class StatKdController extends BaseController
 {
 
@@ -11,7 +13,7 @@ class StatKdController extends BaseController
     {
 
         //查看财务的权限
-        $lookMoney = ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
+        $lookMoney = \bizGhs\shop\classes\ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
         if ($lookMoney == 0) {
             util::fail('没有权限查看');
         }

+ 1 - 1
biz-ghs/shop/classes/ShopAdminClass.php

@@ -59,7 +59,7 @@ class ShopAdminClass extends BaseClass
         } else {
             //好运鲜花批发
             if ($mainId == 644) {
-                $point = [126326];
+                $point = [126272];
                 if (in_array($staffId, $point) == false) {
                     $lookMoney = 0;
                 }