From 313a78d0442de5bb66419eb0848174edef8f97c9 Mon Sep 17 00:00:00 2001 From: Wxw-Gu Date: Tue, 18 Aug 2026 17:34:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96windows=E5=A4=9A?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/index.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 2de63a4..56e1194 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -869,7 +869,13 @@ app.whenReady().then(async () => { if (!selectedRoot) return { success: false, error: '请先选择微信账号' } const validation = await chat.testConnection(result.key, selectedRoot) if (!validation.success) { - return { ...result, success: false, key: undefined, error: '获取到的密钥不属于所选账号' } + return { + ...result, + success: false, + key: undefined, + error: + '获取到的密钥不属于所选账号, 也可能是选择错误的目录了, 请打开微信设置 左下角确认目录是否和软件内填写一致' + } } if (options?.save === false) return result @@ -1203,7 +1209,9 @@ app.whenReady().then(async () => { }) ipcMain.handle('export:selectDirectory', async (event) => { const window = BrowserWindow.fromWebContents(event.sender) - const result = await dialog.showOpenDialog(window!, { properties: ['openDirectory', 'createDirectory'] }) + const result = await dialog.showOpenDialog(window!, { + properties: ['openDirectory', 'createDirectory'] + }) return result.canceled ? { canceled: true } : { canceled: false, path: result.filePaths[0] } }) ipcMain.handle('export:cancel', (_, jobId: string) => { @@ -1740,9 +1748,7 @@ app.whenReady().then(async () => { ipcMain.handle('agent-hub:reconnect', () => agentHubService.reconnect()) ipcMain.handle('agent-hub:disconnect', () => agentHubService.disconnect()) ipcMain.handle('wechat-personal:getStatus', () => personalWechatSendService.getStatus()) - ipcMain.handle('wechat-personal:getRuntimeStatus', () => - personalWechatRuntimeManager.getStatus() - ) + ipcMain.handle('wechat-personal:getRuntimeStatus', () => personalWechatRuntimeManager.getStatus()) ipcMain.handle('wechat-personal:downloadRuntime', () => personalWechatRuntimeManager.download()) ipcMain.handle('wechat-personal:cancelRuntimeDownload', () => ({ success: personalWechatRuntimeManager.cancelDownload()