修复了全局wxid错误清洗的问题

This commit is contained in:
cc
2026-05-10 15:17:02 +08:00
parent 2d5832d6a9
commit 39e527a21a
15 changed files with 84 additions and 37 deletions

View File

@@ -251,7 +251,7 @@ class GroupAnalyticsService {
}
private async ensureConnected(): Promise<{ success: boolean; error?: string }> {
const wxid = this.configService.get('myWxid')
const wxid = this.configService.getMyWxidCleaned()
const dbPath = this.configService.get('dbPath')
const decryptKey = this.configService.get('decryptKey')
if (!wxid) return { success: false, error: '未配置微信ID' }
@@ -1557,7 +1557,7 @@ class GroupAnalyticsService {
const phraseCounts = new Map<string, number>()
const emojiCounts = new Map<string, number>()
const myWxid = String(this.configService.get('myWxid') || '').trim()
const myWxid = String(this.configService.getMyWxidCleaned() || '').trim()
try {
while (true) {