fix(tencent): 视频号登录强制有头模式——微信 qrconnect 组件在 headless 下 iframe JS 不执行导致扫码回调失败,改为弹出浏览器扫码(二维码仍同步前端)
This commit is contained in:
+4
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user