build: 1.7.7

This commit is contained in:
手瓜一十雪
2024-08-04 15:16:45 +08:00
parent 20fd5ac8cb
commit 3cce9f528b

@@ -84,7 +84,6 @@ export class NapCatCore {
const dataPath = path.resolve(this.dataPath, './NapCat/data'); const dataPath = path.resolve(this.dataPath, './NapCat/data');
fs.mkdirSync(dataPath, { recursive: true }); fs.mkdirSync(dataPath, { recursive: true });
logDebug('本账号数据/缓存目录:', dataPath); logDebug('本账号数据/缓存目录:', dataPath);
// dbUtil.init(path.resolve(dataPath, `./${arg.uin}-v2.db`)).then(() => {
this.initDataListener(); this.initDataListener();
this.onLoginSuccessFuncList.map(cb => { this.onLoginSuccessFuncList.map(cb => {
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
@@ -94,11 +93,6 @@ export class NapCatCore {
} }
}).then(); }).then();
}); });
// }).catch((e) => {
// logError('数据库初始化失败', e);
// });
// this.initDataListener();
}).catch((e) => { }).catch((e) => {
logError('initSession failed', e); logError('initSession failed', e);
throw new Error(`启动失败: ${JSON.stringify(e)}`); throw new Error(`启动失败: ${JSON.stringify(e)}`);
@@ -258,7 +252,7 @@ export class NapCatCore {
stat.packet_received += 1; stat.packet_received += 1;
}; };
this.addListener(msgListener); this.addListener(msgListener);
// 好友相关 // 好友相关
const buddyListener = new BuddyListener(); const buddyListener = new BuddyListener();
buddyListener.onBuddyListChange = arg => { buddyListener.onBuddyListChange = arg => {
rawFriends.length = 0; rawFriends.length = 0;