From e4c7bb8900a88648aa686ee45ebe9daedc4f451f Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Tue, 4 Jun 2024 04:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E8=A1=A5=E5=85=85=E9=87=8D?= =?UTF-8?q?=E5=90=AF=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/plugins/core_command/core_restart/restart.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gsuid_core/plugins/core_command/core_restart/restart.py b/gsuid_core/plugins/core_command/core_restart/restart.py index 866698c..9dd785e 100644 --- a/gsuid_core/plugins/core_command/core_restart/restart.py +++ b/gsuid_core/plugins/core_command/core_restart/restart.py @@ -34,7 +34,7 @@ def get_restart_command(): async def get_restart_sh() -> str: - args = f'{restart_command} {str(bot_start.absolute())}' + args = f'{get_restart_command()} {str(bot_start.absolute())}' return _restart_sh.format(str(bot_start.absolute()), args) @@ -68,12 +68,12 @@ async def restart_genshinuid( json.dump(update_log, f) if platform.system() == 'Linux': subprocess.Popen( - f'kill -9 {pid} & {restart_command} {bot_start}', + f'kill -9 {pid} & {get_restart_command()} {bot_start}', shell=True, ) else: subprocess.Popen( - f'taskkill /F /PID {pid} & {restart_command} {bot_start}', + f'taskkill /F /PID {pid} & {get_restart_command()} {bot_start}', shell=True, )