Commit 07ff4a26 by lei

1

parent d5e342f3
......@@ -239,7 +239,6 @@ class ToWork:
break
cur_type = 1 # 获取最后一个
if cur_type == 1:
logger.info('进入')
# 判断文字中是否存在进度条
text_path = '//div[contains(@id, "message-content-")]'
text_el = await self.FindElement(page, text_path, 'last')
......@@ -250,6 +249,7 @@ class ToWork:
logger.info('本次任务失败')
# 回调
await self.img_callback(task, '', title)
return
elif '%' not in title and '(Waiting to start)' not in title and '正在发送命令' not in title:
logger.info('任务完成')
# 最后一个链接
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment