@@ -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;