This commit is contained in:
2025-11-22 14:15:57 +08:00
parent fcaf1f935f
commit 698dd77a4c
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
# 0.1.3
- 修复脚本bug
# 0.1.2 # 0.1.2
- 优化自动化脚本 - 优化自动化脚本
# 0.1.1 # 0.1.1

View File

@@ -118,6 +118,7 @@ class Auto:
continue_button = self.tab.ele( continue_button = self.tab.ele(
't:button@text():Continue', timeout=1) 't:button@text():Continue', timeout=1)
if continue_button: if continue_button:
jc += 1
# 滚动到最底部 # 滚动到最底部
self.tab.scroll.to_bottom() self.tab.scroll.to_bottom()
self.tab.wait(1) self.tab.wait(1)
@@ -127,7 +128,6 @@ class Auto:
logger.debug("Cloudflare验证失败..") logger.debug("Cloudflare验证失败..")
self.tab.refresh() self.tab.refresh()
self.tab.wait(1.5) self.tab.wait(1.5)
jc += 1
continue continue
else: else:
logger.debug("Cloudflare验证成功..") logger.debug("Cloudflare验证成功..")
@@ -145,6 +145,12 @@ class Auto:
# self.tab.wait(1) # self.tab.wait(1)
# return self.click_continue(bl=True) # return self.click_continue(bl=True)
bol = self.tab.ele(
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
if bol:
logger.debug("刷新网页")
self.tab.refresh()
self.tab.wait(1.5)
bol = self.tab.ele( bol = self.tab.ele(
't:h1@text()=Sorry, you have been blocked', timeout=1) 't:h1@text()=Sorry, you have been blocked', timeout=1)
if bol: if bol:
@@ -448,6 +454,12 @@ class Auto:
) )
return True return True
bol = self.tab.ele(
't:div@text():ERR_SSL_PROTOCOL_ERROR', timeout=1)
if bol:
logger.debug("刷新网页")
self.tab.refresh()
self.tab.wait(1.5)
bol = self.solve_cloudflare() bol = self.solve_cloudflare()
if not bol: if not bol:
logger.debug("Cloudflare验证失败.") logger.debug("Cloudflare验证失败.")