mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix
This commit is contained in:
parent
7e4ebd330c
commit
8a8aa0016e
@ -39,7 +39,7 @@ export async function NCoreInitLiteLoader(session: NodeIQQNTWrapperSession, logi
|
|||||||
//启动WebUi
|
//启动WebUi
|
||||||
|
|
||||||
//初始化LLNC的Onebot实现
|
//初始化LLNC的Onebot实现
|
||||||
new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context,pathWrapper);
|
new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context, pathWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
export class NapCatLiteLoader {
|
export class NapCatLiteLoader {
|
||||||
|
@ -129,9 +129,8 @@ export async function NCoreInitShell() {
|
|||||||
} else {
|
} else {
|
||||||
logger.log('没有 -q 指令指定快速登录,或未曾登录过这个 QQ,将使用二维码登录方式');
|
logger.log('没有 -q 指令指定快速登录,或未曾登录过这个 QQ,将使用二维码登录方式');
|
||||||
if (historyLoginList.length > 0) {
|
if (historyLoginList.length > 0) {
|
||||||
logger.log(`可用于快速登录的 QQ:\n${
|
logger.log(`可用于快速登录的 QQ:\n${historyLoginList.map((u, index) => `${index + 1}. ${u.uin} ${u.nickName}`).join('\n')
|
||||||
historyLoginList.map((u, index) => `${index + 1}. ${u.uin} ${u.nickName}`).join('\n')
|
}`);
|
||||||
}`);
|
|
||||||
}
|
}
|
||||||
loginService.getQRCodePicture();
|
loginService.getQRCodePicture();
|
||||||
}
|
}
|
||||||
@ -177,7 +176,8 @@ export async function NCoreInitShell() {
|
|||||||
logger,
|
logger,
|
||||||
loginService,
|
loginService,
|
||||||
selfInfo,
|
selfInfo,
|
||||||
basicInfoWrapper
|
basicInfoWrapper,
|
||||||
|
pathWrapper
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,6 +192,7 @@ export class NapCatShell {
|
|||||||
loginService: NodeIKernelLoginService,
|
loginService: NodeIKernelLoginService,
|
||||||
selfInfo: SelfInfo,
|
selfInfo: SelfInfo,
|
||||||
basicInfoWrapper: QQBasicInfoWrapper,
|
basicInfoWrapper: QQBasicInfoWrapper,
|
||||||
|
pathWrapper: NapCatPathWrapper
|
||||||
) {
|
) {
|
||||||
this.context = {
|
this.context = {
|
||||||
workingEnv: NapCatCoreWorkingEnv.Shell,
|
workingEnv: NapCatCoreWorkingEnv.Shell,
|
||||||
@ -203,7 +204,7 @@ export class NapCatShell {
|
|||||||
};
|
};
|
||||||
this.core = new NapCatCore(this.context, selfInfo);
|
this.core = new NapCatCore(this.context, selfInfo);
|
||||||
|
|
||||||
new NapCatOneBot11Adapter(this.core, this.context);
|
new NapCatOneBot11Adapter(this.core, this.context, pathWrapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user