|
|
|
@ -741,6 +741,7 @@ class OrderOnlineService implements OrderOnlineServiceInterface |
|
|
|
{ |
|
|
|
$orderMain = $this->check($globalOrderId, $userId, OrderState::RECEIVING); |
|
|
|
$orderMain->state = OrderState::COMPLETED; |
|
|
|
$orderMain->complete_time = time(); |
|
|
|
if (!$orderMain->save()) { |
|
|
|
throw new ErrorCodeException(ErrorCode::ORDER_COMPLETE_FAIL); |
|
|
|
} |
|
|
|
|