Browse Source

权限管理

shish 1 year ago
parent
commit
14fb127efc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      app-ghs/controllers/CustomController.php

+ 5 - 0
app-ghs/controllers/CustomController.php

@@ -1046,6 +1046,11 @@ class CustomController extends BaseController
     //总赊账和总余额汇总 ssh 20250620
     public function actionShowTotalBalance()
     {
+        $lookMoney = \bizGhs\shop\classes\ShopAdminClass::lookMoneyPower($this->shopAdmin, $this->shop);
+        if($lookMoney == 0){
+            util::fail('无法查看哦');
+        }
+
         $pfShop = $this->shop;
         $lsShopId = $pfShop->lsShopId;
         $pfShopId = $this->shopId;