修改订单状态更新的错误

This commit is contained in:
luofei 2023-07-11 11:59:09 +08:00
parent 6d79a72c93
commit 11345e97bd

View File

@ -2535,12 +2535,13 @@ class StoreOrderRepository extends BaseRepository
}
if ($type == 2) {
$order->is_del = 1;
$groupOrder->is_del = 1;
} else {
$order->status = StoreOrder::STATUS_WAIT_PAY;
$groupOrder->paid = 1;
$order->paid = 1;
}
$groupOrder->paid = 1;
$groupOrder->save();
$order->paid = 1;
$order->save();
Db::commit();
} catch (\Exception $e) {