This commit is contained in:
cc
2026-05-04 09:25:15 +08:00
parent 2d14ba9078
commit 86f966d469
4 changed files with 12 additions and 5 deletions

View File

@@ -259,7 +259,9 @@ class GroupAnalyticsService {
if (!decryptKey) return { success: false, error: '未配置解密密钥' }
const cleanedWxid = this.cleanAccountDirName(wxid)
const ok = await wcdbService.open(dbPath, decryptKey, cleanedWxid)
const accountDir = this.configService.getAccountDir(dbPath, wxid)
if (!accountDir) return { success: false, error: '无法找到账号目录' }
const ok = await wcdbService.open(accountDir, decryptKey)
if (!ok) return { success: false, error: 'WCDB 打开失败' }
return { success: true }
}