update pay ui

This commit is contained in:
2025-12-12 12:38:43 +08:00
parent 491d0bf475
commit 9f96c0c502
3 changed files with 23 additions and 8 deletions

4
app.py
View File

@@ -4180,7 +4180,9 @@ def wechat_callback():
'debug_user_id': user.id,
'debug_nickname': user_info.get('nickname', '')[:10],
})
return redirect(f"{frontend_redirect}?{debug_params}")
# ⚡ 修复:正确处理已有查询参数的 URL
separator = '&' if '?' in frontend_redirect else '?'
return redirect(f"{frontend_redirect}{separator}{debug_params}")
# PC 扫码模式:更新状态供前端轮询
if not mode: