chore: add tips

This commit is contained in:
DDSRem
2024-12-13 19:01:49 +08:00
parent 608b093584
commit c2317acfc2
2 changed files with 8 additions and 0 deletions
@@ -77,6 +77,10 @@ def poll_qrcode_status(data, log_print):
logging.info('扫码成功, opentoken 已写入文件!')
last_status = 1
break
else:
if json.loads(re.text)['code'] == 'Too Many Requests':
logging.warning("Too Many Requests 请一小时后重试!")
break
else:
if log_print:
logging.info('等待用户扫码...')
@@ -43,6 +43,10 @@ def poll_qrcode_status(data, log_print):
logging.info('扫码成功, opentoken 已写入文件!')
last_status = 1
break
else:
if json.loads(re.text)['code'] == 'Too Many Requests':
logging.warning("Too Many Requests 请一小时后重试!")
break
else:
if log_print:
logging.info('等待用户扫码...')