From 3b9d27383b06d66a879b8e3038f9dead291978ff Mon Sep 17 00:00:00 2001 From: DLmaster361 Date: Sun, 14 Sep 2025 22:34:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DMAA=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=97=B6=E9=94=99=E8=AF=AF=E8=8E=B7=E5=8F=96user=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/ConfigBase.py | 2 ++ app/task/MAA.py | 8 ++++---- frontend/src/views/MAAUserEdit.vue | 1 - 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/models/ConfigBase.py b/app/models/ConfigBase.py index 40d6c28..c484491 100644 --- a/app/models/ConfigBase.py +++ b/app/models/ConfigBase.py @@ -308,6 +308,8 @@ class ConfigItem: 要设置的值, 可以是任何合法类型 """ + print(self.group, self.name, value, self.value) + if ( dpapi_decrypt(self.value) if isinstance(self.validator, EncryptValidator) diff --git a/app/task/MAA.py b/app/task/MAA.py index 96b603d..4c8dd45 100644 --- a/app/task/MAA.py +++ b/app/task/MAA.py @@ -1357,12 +1357,12 @@ class MaaManager: elif self.user_id is not None: if ( Path.cwd() - / f"data/{self.script_id}/{self.user_id}/ConfigFile/gui.json" + / f"data/{self.script_id}/{self.user_list[self.index]['user_id']}/ConfigFile/gui.json" ).exists(): shutil.copy( ( Path.cwd() - / f"data/{self.script_id}/{self.user_id}/ConfigFile/gui.json" + / f"data/{self.script_id}/{self.user_list[self.index]['user_id']}/ConfigFile/gui.json" ), self.maa_set_path, ) @@ -1597,7 +1597,7 @@ class MaaManager: if ( Path.cwd() - / f"data/{self.script_id}/{self.user_id}/Infrastructure/infrastructure.json" + / f"data/{self.script_id}/{self.user_list[self.index]['user_id']}/Infrastructure/infrastructure.json" ).exists(): data["Configurations"]["Default"][ @@ -1618,7 +1618,7 @@ class MaaManager: "Infrast.CustomInfrastFile" ] = str( Path.cwd() - / f"data/{self.script_id}/{self.user_id}/Infrastructure/infrastructure.json" + / f"data/{self.script_id}/{self.user_list[self.index]['user_id']}/Infrastructure/infrastructure.json" ) # 自定义基建配置文件地址 else: logger.warning( diff --git a/frontend/src/views/MAAUserEdit.vue b/frontend/src/views/MAAUserEdit.vue index 554e846..42e36ae 100644 --- a/frontend/src/views/MAAUserEdit.vue +++ b/frontend/src/views/MAAUserEdit.vue @@ -1027,7 +1027,6 @@ import { useWebSocket } from '@/composables/useWebSocket' import { Service } from '@/api' import { GetStageIn } from '@/api/models/GetStageIn' import { TaskCreateIn } from '@/api/models/TaskCreateIn' -import { defineComponent } from 'vue' const router = useRouter() const route = useRoute()