Skip to content

Commit

Permalink
修复页面加载的等待问题
Browse files Browse the repository at this point in the history
  • Loading branch information
djkcyl committed Jun 27, 2023
1 parent bbea005 commit 1fce7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions haruka_bot/utils/captcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ async def captcha_result_callback(response: Response):
logger.debug(f"[Captcha] Geetest result: {geetest_result}")
if "验证成功" in geetest_result:
logger.success("[Captcha] 极验网页 Tip 验证成功")
await page.wait_for_timeout(1000)
await page.wait_for_load_state("domcontentloaded")
else:
logger.warning("[Captcha] 极验验证失败,正在重试")

Expand Down
2 changes: 1 addition & 1 deletion haruka_bot/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from packaging.version import Version

__version__ = "1.6.0post1"
__version__ = "1.6.0post2"
VERSION = Version(__version__)

0 comments on commit 1fce7b7

Please sign in to comment.