diff --git a/app.py b/app.py index 796d7fbf..b2f93fde 100755 --- a/app.py +++ b/app.py @@ -4190,8 +4190,50 @@ def wechat_callback(): update_wechat_session(state, {'status': new_status, 'user_info': {'user_id': user.id}}) print(f"✅ 微信扫码状态已更新: {new_status}, user_id: {user.id}") - # PC 模式直接跳转到首页 - return redirect('/home') + # ⚡ PC 扫码模式:返回简单页面,不重定向(避免 iframe 导航整个页面) + # 前端会通过轮询检测到状态变化,自动关闭弹窗 + return ''' + + +
+ +授权成功
+授权失败,请重试
+