feat: 添加微信数据库实时监控,聊天记录自动刷新

This commit is contained in:
电摇小子 committed 2026-06-30 14:36:45 +08:00
1 parent 44bf1bcaef
commit e0e0105e8b
10 files changed
+294 -35

No files matched your search

+5
View File
@@ -364,6 +364,11 @@ export class WechatDb {
return this.wcdb4Client
}
public close(): void {
this.wcdb4Client?.close()
this.wcdb4Client = null
}
public getUserMessages(userMd5: string, startTime?: number, endTime?: number): WechatMessage[] {
if (this.wcdb4Client) {
const username = this.chatMd5ToUsername.get(userMd5)