From a98e4af9a8557607bb3873f4a4964e54d03acc7d Mon Sep 17 00:00:00 2001 From: xuncha <102988462+xunchahaha@users.noreply.github.com> Date: Thu, 14 May 2026 22:01:56 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E4=BF=AE=E5=A4=8D=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, 2 insertions(+), 4 deletions(-) diff --git a/electron/services/dualReportService.ts b/electron/services/dualReportService.ts index 07a6d4a..7110a0d 100644 --- a/electron/services/dualReportService.ts +++ b/electron/services/dualReportService.ts @@ -1,6 +1,5 @@ import { parentPort } from 'worker_threads' import { wcdbService } from './wcdbService' -import { ConfigService } from './config' export interface DualReportMessage { @@ -110,12 +109,11 @@ class DualReportService { if (!dbPath) return { success: false, error: '未配置数据库路径' } if (!decryptKey) return { success: false, error: '未配置解密密钥' } - const configService = ConfigService.getInstance() - const accountDir = configService.getAccountDir(dbPath, wxid) + const cleanedWxid = this.cleanAccountDirName(wxid) + 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 打开失败' } - const cleanedWxid = this.cleanAccountDirName(wxid) return { success: true, cleanedWxid, rawWxid: wxid } }