From 046482fccd1c444561af7b327c6de81970e3437c Mon Sep 17 00:00:00 2001 From: xuncha <1658671838@qq.com> Date: Thu, 14 May 2026 21:42:41 +0800 Subject: [PATCH] =?UTF-8?q?[Bug]:=20=E5=B9=B4=E5=BA=A6=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=8A=9F=E8=83=BD=E6=97=A0=E6=B3=95=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20Fixes=20#953?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/services/dualReportService.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/electron/services/dualReportService.ts b/electron/services/dualReportService.ts index 7110a0d..07a6d4a 100644 --- a/electron/services/dualReportService.ts +++ b/electron/services/dualReportService.ts @@ -1,5 +1,6 @@ import { parentPort } from 'worker_threads' import { wcdbService } from './wcdbService' +import { ConfigService } from './config' export interface DualReportMessage { @@ -109,11 +110,12 @@ class DualReportService { if (!dbPath) return { success: false, error: '未配置数据库路径' } if (!decryptKey) return { success: false, error: '未配置解密密钥' } - const cleanedWxid = this.cleanAccountDirName(wxid) - const accountDir = this.configService.getAccountDir(dbPath, wxid) + const configService = ConfigService.getInstance() + const accountDir = configService.getAccountDir(dbPath, wxid) if (!accountDir) return { success: false, error: '无法找到账号目录' } const ok = await wcdbService.open(accountDir, decryptKey) if (!ok) return { success: false, error: 'WCDB 打开失败' } + const cleanedWxid = this.cleanAccountDirName(wxid) return { success: true, cleanedWxid, rawWxid: wxid } }