pcacc 3 долоо хоног өмнө
parent
commit
f33e2c3730

+ 4 - 4
app_dongri.py

@@ -575,10 +575,10 @@ def read_cfg():
     except Exception as e:
         print("读取minIO错误, 尝试读取本地")
         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:
             print("配置文件不存在,请检查文件路径。")
             return None

+ 2 - 1
scriptBase/minio_manage.py

@@ -4,7 +4,8 @@ import json
 import io
 
 class MinIO_globalCfg:
-    endpoint = "117.72.64.146:6614"
+    endpoint = '35.tcp.cpolar.top:13040'
+    #endpoint = "117.72.64.146:6614"
     access_key = "dongri"
     secret_key = "12345678"
     bucket_name = "dongri"