fix: check config

This commit is contained in:
手瓜一十雪
2024-11-24 12:23:42 +08:00
parent 7158f25f37
commit 3c09ff13d0

View File

@@ -154,8 +154,8 @@ export function mergeOneBotConfigs(
if (userConfig.enableLocalFile2Url !== undefined) { if (userConfig.enableLocalFile2Url !== undefined) {
mergedConfig.enableLocalFile2Url = userConfig.enableLocalFile2Url; mergedConfig.enableLocalFile2Url = userConfig.enableLocalFile2Url;
} }
if (userConfig.enableLocalFile2Url !== undefined) { if (userConfig.parseMultMsg !== undefined) {
mergedConfig.enableLocalFile2Url = true; mergedConfig.parseMultMsg = userConfig.parseMultMsg;
} }
return mergedConfig; return mergedConfig;
} }