fix: 修复MAA运行时错误获取user_id
This commit is contained in:
@@ -308,6 +308,8 @@ class ConfigItem:
|
|||||||
要设置的值, 可以是任何合法类型
|
要设置的值, 可以是任何合法类型
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
print(self.group, self.name, value, self.value)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
dpapi_decrypt(self.value)
|
dpapi_decrypt(self.value)
|
||||||
if isinstance(self.validator, EncryptValidator)
|
if isinstance(self.validator, EncryptValidator)
|
||||||
|
|||||||
@@ -1357,12 +1357,12 @@ class MaaManager:
|
|||||||
elif self.user_id is not None:
|
elif self.user_id is not None:
|
||||||
if (
|
if (
|
||||||
Path.cwd()
|
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():
|
).exists():
|
||||||
shutil.copy(
|
shutil.copy(
|
||||||
(
|
(
|
||||||
Path.cwd()
|
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,
|
self.maa_set_path,
|
||||||
)
|
)
|
||||||
@@ -1597,7 +1597,7 @@ class MaaManager:
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
Path.cwd()
|
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():
|
).exists():
|
||||||
|
|
||||||
data["Configurations"]["Default"][
|
data["Configurations"]["Default"][
|
||||||
@@ -1618,7 +1618,7 @@ class MaaManager:
|
|||||||
"Infrast.CustomInfrastFile"
|
"Infrast.CustomInfrastFile"
|
||||||
] = str(
|
] = str(
|
||||||
Path.cwd()
|
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:
|
else:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
|
|||||||
@@ -1027,7 +1027,6 @@ import { useWebSocket } from '@/composables/useWebSocket'
|
|||||||
import { Service } from '@/api'
|
import { Service } from '@/api'
|
||||||
import { GetStageIn } from '@/api/models/GetStageIn'
|
import { GetStageIn } from '@/api/models/GetStageIn'
|
||||||
import { TaskCreateIn } from '@/api/models/TaskCreateIn'
|
import { TaskCreateIn } from '@/api/models/TaskCreateIn'
|
||||||
import { defineComponent } from 'vue'
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
|||||||
Reference in New Issue
Block a user