fix(tencent): 图文上传框轮询等待拉长到 180s,适配慢网络下表单挂载慢
This commit is contained in:
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 |
@@ -1348,8 +1348,11 @@ class TencentNote(TencentBaseUploader):
|
|||||||
continue
|
continue
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
# 图文创建页(finderNewLifeCreate)的 file input 在 micro/content/post/finderNewLifeCreate
|
||||||
|
# 这个 iframe 里,accept="image/*"、multiple=true。表单挂载较慢(慢网络下要 30 秒以上),
|
||||||
|
# 拉长轮询等待,避免表单还没挂载就误判「未找到上传框」。
|
||||||
fi = await find_image_input()
|
fi = await find_image_input()
|
||||||
for _ in range(60):
|
for _ in range(180):
|
||||||
if fi is not None:
|
if fi is not None:
|
||||||
break
|
break
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user