diff --git a/app/Services/OrderService.php b/app/Services/OrderService.php index 60c0e3d0..9fe7655e 100644 --- a/app/Services/OrderService.php +++ b/app/Services/OrderService.php @@ -190,6 +190,7 @@ class OrderService ->where('period', '!=', 'reset_price') ->where('status', 3); $orders = $orderModel->get(); + if (!$orders) return; $orderAmountSum = 0; $orderMonthSum = 0; foreach ($orders as $k => $item) {