From 8e0a88e9d693dd8bab277acbe6ec52945c99485d Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Mon, 17 Jan 2022 11:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AE=A2=E5=8D=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/DealerOrder.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Models/DealerOrder.php b/app/Models/DealerOrder.php index 8696edbe..93b4c788 100644 --- a/app/Models/DealerOrder.php +++ b/app/Models/DealerOrder.php @@ -79,9 +79,10 @@ class DealerOrder extends Model */ public function scopeOnlyShipping($query) { - return $query->whereIn('status', [ - DealerOrderStatus::Confirming, DealerOrderStatus::Paid, DealerOrderStatus::Shipped, - ]); + // return $query->whereIn('status', [ + // DealerOrderStatus::Confirming, DealerOrderStatus::Paid, DealerOrderStatus::Shipped, + // ]); + return $query->where('status', DealerOrderStatus::Shipped); } /**