Explorar o código

pref(): add packe_name and fix task group

runhey %!s(int64=3) %!d(string=hai) anos
pai
achega
461db57dcc
Modificáronse 2 ficheiros con 4 adicións e 2 borrados
  1. 2 2
      module/config/config_model.py
  2. 2 0
      tasks/Script/config_device.py

+ 2 - 2
module/config/config_model.py

@@ -115,7 +115,7 @@ class ConfigModel(ConfigBase):
         task = convert_to_underscore(task)
         task_gui = getattr(self, task, None)
         if task_gui is None:
-            logger.error(f'{task} is no inexistence')
+            logger.warning(f'{task} is no inexistence')
             return ''
 
         schema2 = task_gui.schema()
@@ -139,7 +139,7 @@ class ConfigModel(ConfigBase):
         task_name = convert_to_underscore(task)
         task = getattr(self, task_name, None)
         if task is None:
-            logger.error(f'{task_name} is no inexistence')
+            logger.warning(f'{task_name} is no inexistence')
             return ''
         return task.json()
 

+ 2 - 0
tasks/Script/config_device.py

@@ -9,6 +9,8 @@ from module.logger import logger
 class PackageName(str, Enum):
     AUTO = 'auto'
     NETEASE_ONMYOJI = 'com.netease.onmyoji.wyzymnqsd_cps'  # 网易自家的阴阳师
+    NETEASE_MI = 'com.netease.onmyoji.mi'
+    NETEASE = 'com.netease.onmyoji'
 
 class ScreenshotMethod(str, Enum):
     AUTO = 'auto'