6
0
Fork 0

调整发货单包裹作废bug

release
vine_liutk 2021-12-29 14:52:39 +08:00
parent 6eab051dc2
commit ad92afb21a
1 changed files with 5 additions and 1 deletions

View File

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