mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
fix: 获取密钥成功后微信继续运行
This commit is contained in:
@@ -87,6 +87,7 @@ export class KeyServiceLinux {
|
|||||||
const command = `"${helperPath}" db_hook ${pid} ${targetAddr}`
|
const command = `"${helperPath}" db_hook ${pid} ${targetAddr}`
|
||||||
|
|
||||||
sudo.exec(command, options, (error, stdout) => {
|
sudo.exec(command, options, (error, stdout) => {
|
||||||
|
execAsync(`kill -CONT ${pid}`).catch(() => {})
|
||||||
if (error) {
|
if (error) {
|
||||||
resolve({ success: false, error: `授权失败或被取消: ${error.message}` })
|
resolve({ success: false, error: `授权失败或被取消: ${error.message}` })
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -901,12 +901,12 @@ function WelcomePage({ standalone = false }: WelcomePageProps) {
|
|||||||
open={showDbKeyConfirm}
|
open={showDbKeyConfirm}
|
||||||
title="开始获取数据库密钥"
|
title="开始获取数据库密钥"
|
||||||
message={`当开始获取后 WeFlow 将会执行准备操作。
|
message={`当开始获取后 WeFlow 将会执行准备操作。
|
||||||
|
${isLinux ? `
|
||||||
【⚠️ Linux 用户特别注意】
|
【⚠️ Linux 用户特别注意】
|
||||||
如果您在微信里勾选了“自动登录”,请务必先打开微信设置 取消勾选自动登录,然后再点击下方确认!
|
如果您在微信里勾选了“自动登录”,请务必先关闭自动登录,然后再点击下方确认!
|
||||||
(因为授权弹窗输入密码需要时间,若自动登录太快,会导致获取密钥失败并卡死微信)
|
(因为授权弹窗输入密码需要时间,若自动登录太快会导致获取失败)
|
||||||
|
` : ''}
|
||||||
当 WeFlow 内的提示条变为绿色显示“允许登录”或看到来自 WeFlow 的登录通知时,请在手机上确认登录微信。`}
|
当 WeFlow 内的提示条变为绿色显示允许登录或看到来自 WeFlow 的登录通知时,请在手机上确认登录微信。`}
|
||||||
onConfirm={handleDbKeyConfirm}
|
onConfirm={handleDbKeyConfirm}
|
||||||
onCancel={() => setShowDbKeyConfirm(false)}
|
onCancel={() => setShowDbKeyConfirm(false)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user