From 8416381fa034a69df6d29c5e58dd64a770118a87 Mon Sep 17 00:00:00 2001 From: xboard Date: Sun, 2 Jun 2024 22:22:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=8E=E7=9A=84=E8=BF=94=E5=9B=9EURL?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E4=B8=8D=E4=B8=BA=E6=9D=A5=E6=BA=90=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PaymentService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'],