diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index 48a0fd71..f26fd544 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -45,10 +45,10 @@ public function pay($order) $parseUrl = parse_url($notifyUrl); $notifyUrl = $this->config['notify_domain'] . $parseUrl['path']; } - + return $this->payment->pay([ 'notify_url' => $notifyUrl, - 'return_url' => admin_setting('app_url') . '/#/order/' . $order['trade_no'], + 'return_url' => url('/#/order/' . $order['trade_no']), 'trade_no' => $order['trade_no'], 'total_amount' => $order['total_amount'], 'user_id' => $order['user_id'],