Revert "feat: 调整"

This reverts commit 1a543928b10428a15aad817adffe12bd5658d428.
This commit is contained in:
手瓜一十雪 2024-09-26 17:01:13 +08:00
parent 1a543928b1
commit dc92ace85e

View File

@ -9,7 +9,6 @@ import { NodeIKernelLoginService } from '@/core/services';
import { NodeIQQNTWrapperSession, WrapperNodeApi } from '@/core/wrapper';
import { InitWebUi, WebUiConfig } from '@/webui';
import { NapCatOneBot11Adapter } from '@/onebot';
import { mkdir, mkdirSync } from 'fs';
//Framework ES入口文件
export async function getWebUiUrl() {
@ -27,12 +26,8 @@ export async function NCoreInitFramework(
let dataPath: string | undefined;
try {
dataPath = (global as any).LiteLoader.plugins['NapCatQQ'].path.data;
if (dataPath) {
mkdirSync(dataPath, { recursive: true });
}
} catch (error) {
dataPath = undefined;
}
const pathWrapper = new NapCatPathWrapper(dataPath);