|
|
|
@ -261,11 +261,12 @@ class PaymentService extends AbstractService
|
|
|
|
|
return [$order, $orderSplitInfos];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function updateOrder($params, $status = 'APPLY_SUCCESS') {
|
|
|
|
|
$order = Order::where('order_no', $params['order_no'])->where('status', $status)->first();
|
|
|
|
|
public function updateOrder($params, $status = null) {
|
|
|
|
|
$order = Order::where('order_no', $params['order_no'])->first();
|
|
|
|
|
if (empty($order)) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$order->third_order_no = $params['third_order_no'];
|
|
|
|
|
$order->status = $params['status'];
|
|
|
|
|
$order->finished_at = date('Y-m-d H:i:s', strtotime($params['finished_at']));
|
|
|
|
@ -479,7 +480,7 @@ class PaymentService extends AbstractService
|
|
|
|
|
if (empty($order)) {
|
|
|
|
|
throw new BusinessException('订单不存在');
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
$baofu = new Baofu();
|
|
|
|
|
$result = $baofu->queryOrder([
|
|
|
|
|
'loginNo' => $order->member_id,
|
|
|
|
@ -498,8 +499,6 @@ class PaymentService extends AbstractService
|
|
|
|
|
'out_transaction_id' => $result['outTransactionId'] ?? '',
|
|
|
|
|
];
|
|
|
|
|
return $this->updateOrder($info);
|
|
|
|
|
} catch (ApiException $e) {
|
|
|
|
|
throw $e;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|