fix(tencent): 图文上传框轮询等待拉长到 180s,适配慢网络下表单挂载慢

This commit is contained in:
Qiufeng
2026-08-21 23:20:30 +08:00
parent 7d6089112a
commit 3add81c59a
5 changed files with 4 additions and 40 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 232 KiB

File diff suppressed because one or more lines are too long
Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

+4 -1
View File
@@ -1348,8 +1348,11 @@ class TencentNote(TencentBaseUploader):
continue
return None
# 图文创建页(finderNewLifeCreate)的 file input 在 micro/content/post/finderNewLifeCreate
# 这个 iframe 里,accept="image/*"、multiple=true。表单挂载较慢(慢网络下要 30 秒以上),
# 拉长轮询等待,避免表单还没挂载就误判「未找到上传框」。
fi = await find_image_input()
for _ in range(60):
for _ in range(180):
if fi is not None:
break
await asyncio.sleep(1)