mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 19:40:53 +08:00
fix: 修复支付完成后的返回URL可能不为来源站点的问题
This commit is contained in:
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user