From 436254f10140dd561567a94825e25e9ee7fcc382 Mon Sep 17 00:00:00 2001 From: Qiufeng Date: Fri, 21 Aug 2026 19:18:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(tencent):=20=E8=A7=86=E9=A2=91=E5=8F=B7?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=BC=BA=E5=88=B6=E6=9C=89=E5=A4=B4=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E2=80=94=E2=80=94=E5=BE=AE=E4=BF=A1=20qrconnect=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=9C=A8=20headless=20=E4=B8=8B=20iframe=20J?= =?UTF-8?q?S=20=E4=B8=8D=E6=89=A7=E8=A1=8C=E5=AF=BC=E8=87=B4=E6=89=AB?= =?UTF-8?q?=E7=A0=81=E5=9B=9E=E8=B0=83=E5=A4=B1=E8=B4=A5=EF=BC=8C=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=BC=B9=E5=87=BA=E6=B5=8F=E8=A7=88=E5=99=A8=E6=89=AB?= =?UTF-8?q?=E7=A0=81=EF=BC=88=E4=BA=8C=E7=BB=B4=E7=A0=81=E4=BB=8D=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=89=8D=E7=AB=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sau_backend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sau_backend.py b/sau_backend.py index e540efd..72a0dff 100644 --- a/sau_backend.py +++ b/sau_backend.py @@ -888,7 +888,10 @@ def _login_new_platform(platform_type, account_name, status_queue): if t == 1: result = loop.run_until_complete(xiaohongshu_setup(str(account_file), handle=True, return_detail=True, qrcode_callback=cb, headless=login_headless)) elif t == 2: - result = loop.run_until_complete(tencent_setup(str(account_file), handle=True, return_detail=True, qrcode_callback=cb, headless=login_headless)) + # 视频号(微信)qrconnect 登录组件在 headless 下 iframe JS 不执行、扫码回调失败, + # 必须强制有头模式弹出浏览器,保证微信登录组件正常工作(二维码仍会同步到前端) + status_queue.put("已打开浏览器,请在弹出的浏览器窗口中扫码登录视频号(微信登录不支持无头模式)") + result = loop.run_until_complete(tencent_setup(str(account_file), handle=True, return_detail=True, qrcode_callback=cb, headless=False)) elif t == 3: result = loop.run_until_complete(douyin_setup(str(account_file), handle=True, return_detail=True, qrcode_callback=cb, headless=login_headless)) elif t == 4: