mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 09:15:41 +08:00
feat: 知识库更新,优化批量语音转写 - 合并索引 - 增加会话级批量转写处理 - 补充语音转写回归测试
This commit is contained in:
1 parent
eee84f35df
commit
b5f67c47e5
34 files changed
+2589
-53
No files matched your search
@@ -233,6 +233,17 @@ export class WechatDb {
|
||||
return mergeExportMessages(messages)
|
||||
}
|
||||
|
||||
public async getUserVoiceMessageCountAsync(
|
||||
userMd5: string,
|
||||
startTime?: number,
|
||||
endTime?: number
|
||||
): Promise<number | null> {
|
||||
this.ensureChatTableMapping()
|
||||
const username = this.chatMd5ToUsername.get(userMd5)
|
||||
if (!username) return 0
|
||||
return this.wcdb4Client.countVoiceMessagesAsync(username, startTime, endTime)
|
||||
}
|
||||
|
||||
public searchAllMessages(keyword: string): string | null {
|
||||
const lowerKeyword = keyword.trim().toLowerCase()
|
||||
if (!lowerKeyword) return null
|
||||
|
||||
Reference in new issue
Block a user