diff --git a/electron/services/keyServiceMac.ts b/electron/services/keyServiceMac.ts index 1699c87..fab059e 100644 --- a/electron/services/keyServiceMac.ts +++ b/electron/services/keyServiceMac.ts @@ -363,7 +363,7 @@ export class KeyServiceMac { // 用 AppleScript 的 quoted form 组装命令,避免复杂 shell 拼接导致整条失败 const scriptLines = [ `set helperPath to ${JSON.stringify(helperPath)}`, - `set cmd to quoted form of helperPath & " ${pid} ${waitMs}"`, + `set cmd to quoted form of helperPath & " ${pid} ${waitMs} 2>&1"`, 'do shell script cmd with administrator privileges' ] onStatus?.('已准备就绪,现在登录微信或退出登录后重新登录微信', 0)