fix: 修复支付完成后的返回URL可能不为来源站点的问题

This commit is contained in:
xboard 2024-06-02 22:22:57 +08:00
parent 72fb7031e5
commit 8416381fa0

View File

@ -48,7 +48,7 @@ class PaymentService
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'],