mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 23:40:38 +00:00
收货重复记录订单状态修复
This commit is contained in:
parent
3a12ad7b61
commit
2e0326b5d9
@ -65,15 +65,7 @@ class StoreOrderTakeServices extends BaseServices
|
||||
throw new ApiException(410266);
|
||||
}
|
||||
$order->status = 2;
|
||||
/** @var StoreOrderStatusServices $statusService */
|
||||
$statusService = app()->make(StoreOrderStatusServices::class);
|
||||
$res = $order->save() && $statusService->save([
|
||||
'oid' => $order['id'],
|
||||
'change_type' => 'user_take_delivery',
|
||||
'change_message' => '用户已收货',
|
||||
'change_time' => time()
|
||||
]);
|
||||
$res = $res && $this->storeProductOrderUserTakeDelivery($order);
|
||||
$res = $order->save() && $this->storeProductOrderUserTakeDelivery($order);
|
||||
if (!$res) {
|
||||
throw new ApiException(410205);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user