Selaa lähdekoodia

!2 upload default daily

pcacc 1 viikko sitten
vanhempi
sitoutus
ed67a6d445
1 muutettua tiedostoa jossa 10 lisäystä ja 13 poistoa
  1. 10 13
      app_dongri.py

+ 10 - 13
app_dongri.py

@@ -578,19 +578,16 @@ def read_Dailycfg():
         return config
     except Exception as e:
         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')