From 831374f0877c98e0f72ef0327d89ee43288f386c Mon Sep 17 00:00:00 2001 From: weigang Date: Wed, 16 Sep 2020 17:06:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=96=E6=B6=88=E5=8F=AE?= =?UTF-8?q?=E5=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/OrderListService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/OrderListService.php b/app/Service/v3/Implementations/OrderListService.php index 9c576a9..4baac01 100644 --- a/app/Service/v3/Implementations/OrderListService.php +++ b/app/Service/v3/Implementations/OrderListService.php @@ -197,7 +197,7 @@ class OrderListService implements OrderListServiceInterface public function autoCancel($userId) { return OrderMain::query() - ->where(['user_id' => $userId]) + ->where(['user_id' => $userId, 'state' => OrderState::UNPAID]) ->where('created_at', '<', time()-900) ->update(['state' => OrderState::CANCELED]); }