|
@@ -575,10 +575,10 @@ def read_cfg():
|
|
|
except Exception as e:
|
|
except Exception as e:
|
|
|
print("读取minIO错误, 尝试读取本地")
|
|
print("读取minIO错误, 尝试读取本地")
|
|
|
try:
|
|
try:
|
|
|
- with open('config.json', 'r') as config_file:
|
|
|
|
|
- config = json.load(config_file)
|
|
|
|
|
- GlobalState.g_cureNum = int(config['cureNumber'])
|
|
|
|
|
- return config
|
|
|
|
|
|
|
+ configInfo = r'{"maxCollect": "0", "cureNumber": "200", "jina": "big_monster", "simple": false, "switch": false, "lineCheck": true, "add_strength": false, "activity": "red_package", "participate_jijie": true, "is_restart": true, "train": "lv9", "always": true}'
|
|
|
|
|
+ config = json.loads(configInfo)
|
|
|
|
|
+ GlobalState.g_cureNum = int(config['cureNumber'])
|
|
|
|
|
+ return config
|
|
|
except FileNotFoundError:
|
|
except FileNotFoundError:
|
|
|
print("配置文件不存在,请检查文件路径。")
|
|
print("配置文件不存在,请检查文件路径。")
|
|
|
return None
|
|
return None
|