|
|
|
@ -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 = [
|
|
|
|
|