feat: 增强异常处理

This commit is contained in:
手瓜一十雪
2025-04-17 17:48:13 +08:00
parent 623188d884
commit d3a34dfdf9
2 changed files with 9 additions and 5 deletions

View File

@@ -42,6 +42,8 @@ export async function NCoreInitFramework(
if (!isExist && path) {
FFmpegService.setFfmpegPath(path);
}
}).catch(e => {
logger.logError('[Ffmpeg] Error:', e);
});
//直到登录成功后,执行下一步
const selfInfo = await new Promise<SelfInfo>((resolveSelfInfo) => {

View File

@@ -317,6 +317,8 @@ export async function NCoreInitShell() {
if (!isExist && path) {
FFmpegService.setFfmpegPath(path);
}
}).catch(e => {
logger.logError('[Ffmpeg] Error:', e);
});
const basicInfoWrapper = new QQBasicInfoWrapper({ logger });
const wrapper = loadQQWrapper(basicInfoWrapper.getFullQQVesion());