fix: 分站支付跳转和回调问题

- EPay/Stripe: 前端传 return_url (window.location.origin + '/topup')
- 后端优先用 return_url,回退到 Origin/Referer 头
- Stripe: 分站自己实现下单,跳过 ValidateRedirectURL 验证
- 增加分站支付日志便于排查

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
abingyydsandClaude Sonnet 4.6 committed 2026-03-21 16:09:49 +09:00
1 parent 1428aa2895
commit 41d199625f
25 files changed
+26 -25

No files matched your search

+2 -1
View File
@@ -120,7 +120,8 @@ export default function Topup() {
setPaymentLoading(true);
setPayingMethod(method);
try {
const data = { amount: payAmount, payment_method: method };
const returnUrl = window.location.origin + '/topup';
const data = { amount: payAmount, payment_method: method, return_url: returnUrl };
if (isStripePayment(method)) {
// Stripe payment