shish 5 年 前
コミット
d0e35be407
1 ファイル変更3 行追加0 行削除
  1. 3 0
      biz/stat/classes/StatStockOutClass.php

+ 3 - 0
biz/stat/classes/StatStockOutClass.php

@@ -35,6 +35,9 @@ class StatStockOutClass extends BaseClass
     //今天出库金额 shish 20210526
     public static function getTodayAmount($shop)
     {
+        if (empty($shop)) {
+            return 0;
+        }
         $today = date("Ymd");
         $shopId = $shop->id;
         $sjId = $shop->sjId;