shish 1 år sedan
förälder
incheckning
8807af4994
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6 1
      app-hd/controllers/CustomController.php

+ 6 - 1
app-hd/controllers/CustomController.php

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