|
@@ -578,19 +578,16 @@ def read_Dailycfg():
|
|
return config
|
|
return config
|
|
except Exception as e:
|
|
except Exception as e:
|
|
print("读取minIO错误, 尝试读取本地")
|
|
print("读取minIO错误, 尝试读取本地")
|
|
- try:
|
|
|
|
- with open('daily.json', 'r') as config_file:
|
|
|
|
- config = json.load(config_file)
|
|
|
|
- return config
|
|
|
|
- except FileNotFoundError:
|
|
|
|
- print("配置文件不存在,请检查文件路径。")
|
|
|
|
- return None
|
|
|
|
- except PermissionError:
|
|
|
|
- print("没有权限读取配置文件。")
|
|
|
|
- return None
|
|
|
|
- except json.JSONDecodeError:
|
|
|
|
- print("配置文件格式错误,请检查文件内容是否为有效的 JSON。")
|
|
|
|
- return None
|
|
|
|
|
|
+ config = {
|
|
|
|
+ "daily": {
|
|
|
|
+ "2025-07-11": {
|
|
|
|
+ "login_task": True,
|
|
|
|
+ "fight_bigMonster_times": 0
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ "runType": 0
|
|
|
|
+ }
|
|
|
|
+ return
|
|
|
|
|
|
|
|
|
|
@socketio.on('begin_auto')
|
|
@socketio.on('begin_auto')
|