mirror of
https://github.com/zhao-zg/jd-login.git
synced 2026-01-19 09:30:43 +08:00
Update login.py
This commit is contained in:
parent
9ee025085f
commit
51ac6664e1
5
login.py
5
login.py
@ -139,8 +139,8 @@ async def loginPhone(chromium_path, workList, uid, headless):
|
||||
IN_SMS_TIMES = 0
|
||||
start_time = datetime.datetime.now()
|
||||
sms_sent = False
|
||||
while True:
|
||||
try:
|
||||
while True:
|
||||
now_time = datetime.datetime.now()
|
||||
logger.info("循环检测中...")
|
||||
if (now_time - start_time).total_seconds() > 70:
|
||||
@ -316,9 +316,8 @@ async def loginPassword(chromium_path, workList, uid, headless):
|
||||
|
||||
IN_SMS_TIMES = 0
|
||||
start_time = datetime.datetime.now()
|
||||
|
||||
while True:
|
||||
try:
|
||||
while True:
|
||||
now_time = datetime.datetime.now()
|
||||
logger.info("循环检测中...")
|
||||
if (now_time - start_time).total_seconds() > 120:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user