efps-version
ljl 2 years ago
parent 45b3b99e1a
commit bdb1bc20d2

@ -101,8 +101,10 @@ class PaymentService extends AbstractService
$order->payed_at = date('Y-m-d H:i:s');
$order->exchange_rate = $params['exchange_rate'] ?: 0;
$order->cny_amount = $params['cny_amount'] ?: 0;
$order->save();
if ($order->save()) {
if (!$order->save()) {
return 'NOTIFY FAIL';
}
Log::info('notifyToOut url:' . $order->notify_url, 'omipay');
$result = Notification::post($order->notify_url, $this->buildNotifyParams($order, $app));
if ($result != 'SUCCESS') {
@ -110,8 +112,6 @@ class PaymentService extends AbstractService
}
return 'SUCCESS';
}
return 'UPDATE FAIL';
}
protected function buildNotifyParams(Order $roder, App $app) {
$params = [

Binary file not shown.
Loading…
Cancel
Save