From ad92afb21a98a23eb9c6437938ee5aca7b487bcb Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Wed, 29 Dec 2021 14:52:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=8F=91=E8=B4=A7=E5=8D=95?= =?UTF-8?q?=E5=8C=85=E8=A3=B9=E4=BD=9C=E5=BA=9Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Services/OrderPackageService.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Admin/Services/OrderPackageService.php b/app/Admin/Services/OrderPackageService.php index 8fa1b167..b5a18194 100644 --- a/app/Admin/Services/OrderPackageService.php +++ b/app/Admin/Services/OrderPackageService.php @@ -124,7 +124,11 @@ class OrderPackageService $orderProduct->increment('remain_quantity', $changeQuantity[$orderProduct->id]); } - //更新订单状态:如果发货完成,则恢复为发货中 + $package->update([ + 'is_failed'=> true, + ]); + + //更新订单状态:如果订单是发货完成,则恢复为发货中 if ($package->order->isShipped()) { $package->order()->update([ 'shipping_state'=>Order::SHIPPING_STATE_PROCESSING,