fix: 获取密钥成功后微信继续运行

This commit is contained in:
H3CoF6
2026-03-17 04:31:13 +08:00
parent 1680acb22c
commit da68b0fdae
2 changed files with 6 additions and 5 deletions

View File

@@ -87,6 +87,7 @@ export class KeyServiceLinux {
const command = `"${helperPath}" db_hook ${pid} ${targetAddr}`
sudo.exec(command, options, (error, stdout) => {
execAsync(`kill -CONT ${pid}`).catch(() => {})
if (error) {
resolve({ success: false, error: `授权失败或被取消: ${error.message}` })
return