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

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

View File

@ -45,10 +45,10 @@ class PaymentService
$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'],