mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-15 15:30:43 +08:00
Update login.py
增加超时文字
This commit is contained in:
parent
d50a32cc3e
commit
06f6a90ea1
4
login.py
4
login.py
@ -213,6 +213,8 @@ async def loginPhone(chromium_path, workList, uid, headless):
|
|||||||
logger.info("异常退出")
|
logger.info("异常退出")
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
await deleteSession(workList, uid)
|
await deleteSession(workList, uid)
|
||||||
|
workList[uid].status = "error"
|
||||||
|
workList[uid].msg = "异常退出"
|
||||||
break
|
break
|
||||||
|
|
||||||
logger.info("任务完成退出")
|
logger.info("任务完成退出")
|
||||||
@ -502,6 +504,8 @@ async def loginPassword(chromium_path, workList, uid, headless):
|
|||||||
with open(f"error_{usernum}-html-{dateTime}.html", 'w', encoding='utf-8') as f:
|
with open(f"error_{usernum}-html-{dateTime}.html", 'w', encoding='utf-8') as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
await deleteSession(workList, uid)
|
await deleteSession(workList, uid)
|
||||||
|
workList[uid].status = "error"
|
||||||
|
workList[uid].msg = "异常退出"
|
||||||
break
|
break
|
||||||
|
|
||||||
logger.info("任务完成退出")
|
logger.info("任务完成退出")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user