Skip to content

Commit

Permalink
fix: 修复支付完成后的返回URL可能不为来源站点的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Jun 2, 2024
1 parent 72fb703 commit 8416381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Services/PaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 8416381

Please sign in to comment.