From decc76264a8e7f4e34d520a330356dcf063811e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=BE?= Date: Thu, 22 Aug 2024 11:55:07 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20=E5=89=8D=E5=8F=B0=E9=87=8D?= =?UTF-8?q?=E5=90=AF=E6=97=A0=E5=8F=8D=E5=BA=94"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ea52396fae2fe9c09b4209dff25808aae4c0ba8f. --- src/utils/tools/restart.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/tools/restart.ts b/src/utils/tools/restart.ts index 6c9acfc..745f970 100644 --- a/src/utils/tools/restart.ts +++ b/src/utils/tools/restart.ts @@ -23,7 +23,7 @@ export const restart = async (self_id: string, contact: Contact, message_id: str if (isFront) { if (!process.send) return { status: 'failed', data: '前台重启失败,当前环境不支持,仅支持【npx karin start】启动的环境' } - process.send({ action: 'npx karin start', env: process.env }) + process.send({ action: 'result', env: process.env }) process.exit() }