Update login.py

This commit is contained in:
zhao-zg 2024-12-10 08:15:55 +08:00 committed by GitHub
parent 9ee025085f
commit 51ac6664e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,8 +139,8 @@ async def loginPhone(chromium_path, workList, uid, headless):
IN_SMS_TIMES = 0 IN_SMS_TIMES = 0
start_time = datetime.datetime.now() start_time = datetime.datetime.now()
sms_sent = False sms_sent = False
while True:
try: try:
while True:
now_time = datetime.datetime.now() now_time = datetime.datetime.now()
logger.info("循环检测中...") logger.info("循环检测中...")
if (now_time - start_time).total_seconds() > 70: if (now_time - start_time).total_seconds() > 70:
@ -316,9 +316,8 @@ async def loginPassword(chromium_path, workList, uid, headless):
IN_SMS_TIMES = 0 IN_SMS_TIMES = 0
start_time = datetime.datetime.now() start_time = datetime.datetime.now()
while True:
try: try:
while True:
now_time = datetime.datetime.now() now_time = datetime.datetime.now()
logger.info("循环检测中...") logger.info("循环检测中...")
if (now_time - start_time).total_seconds() > 120: if (now_time - start_time).total_seconds() > 120: