mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 10:38:14 -05:00
fix: 修复支付完成后的返回URL可能不为来源站点的问题
This commit is contained in:
parent
72fb7031e5
commit
8416381fa0
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user