版本 2.01:fix bug

This commit is contained in:
pooneyy 2023-09-20 12:06:34 +08:00
parent 9040dd3065
commit 45505af55b
No known key found for this signature in database
1 changed files with 6 additions and 6 deletions

View File

@ -270,12 +270,12 @@ def get_tenant_code(school_name: str) -> str:
def set_accounts(): def set_accounts():
global DEFAULT_SCHOOL_NAME global DEFAULT_SCHOOL_NAME
with open("config.json", "r+", encoding='utf8') as file: try:
try:config = json.load(file) with open("config.json", "r+", encoding='utf8') as file:config = json.load(file)
except: except:
config = {} config = {}
config['TrueCaptcha'] = None config['TrueCaptcha'] = None
config['Accounts'] = [] config['Accounts'] = []
if config.get("TrueCaptcha") is None: if config.get("TrueCaptcha") is None:
print('验证码识别使用 TrueCaptcha.org如果你想手动识别验证码请按 Ctrl + C') print('验证码识别使用 TrueCaptcha.org如果你想手动识别验证码请按 Ctrl + C')
try: try: