From 3959486d9a961e14bb6ade6ea471f8f63c250d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Mon, 10 Jun 2024 23:17:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E7=BD=AEAstralQsign?= =?UTF-8?q?=E7=9A=84=E5=90=AF=E5=8A=A8=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OlivOS/libBooter/libAstralQsignEXEModelAPI.py | 2 +- OlivOS/libBooter/libEXEModelAPI.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OlivOS/libBooter/libAstralQsignEXEModelAPI.py b/OlivOS/libBooter/libAstralQsignEXEModelAPI.py index 95697e16..65700968 100644 --- a/OlivOS/libBooter/libAstralQsignEXEModelAPI.py +++ b/OlivOS/libBooter/libAstralQsignEXEModelAPI.py @@ -115,7 +115,7 @@ def run(self): tmp_env = dict(os.environ) tmp_env['FORCE_TTY'] = '' model_Proc = subprocess.Popen( - f".\\start.bat {self.server_data['port']}", + f".\\start.bat \"localhost\" \"{self.server_data['port']}\" \"{self.server_data['token']}\"", cwd='.\\conf\\astral-qsign', shell=True, stdin=subprocess.PIPE, diff --git a/OlivOS/libBooter/libEXEModelAPI.py b/OlivOS/libBooter/libEXEModelAPI.py index b26e1ce7..39183f9b 100644 --- a/OlivOS/libBooter/libEXEModelAPI.py +++ b/OlivOS/libBooter/libEXEModelAPI.py @@ -839,7 +839,7 @@ def setConfig(self): # 为 false 时,将不会自动注册实例,在签名服务器重启或实例被销毁后需要重启 go-cqhttp 以获取实例 # 否则后续消息将不会正常签名。关闭此项后可以考虑开启签名服务器端 auto_register 避免需要重启 # 由于实现问题,当前建议关闭此项,推荐开启签名服务器的自动注册实例 - auto-register: false + auto-register: {auto-register} # 是否在 token 过期后立即自动刷新签名 token(在需要签名时才会检测到,主要防止 token 意外丢失) # 独立于定时刷新 auto-refresh-token: false @@ -970,6 +970,7 @@ def setConfig(self): key: '-' authorization: '-' ''' + self.config_file_format['auto-register'] = 'false' if 'qsign-server' in self.bot_info_dict.extends \ and type(self.bot_info_dict.extends['qsign-server']) is list \ and len(self.bot_info_dict.extends['qsign-server']) > 0: @@ -992,6 +993,7 @@ def setConfig(self): key: '%s' authorization: '-' ''' % (str(self.sub_target_proc['server']['port']), str(self.sub_target_proc['server']['token'])) + self.config_file_format['auto-register'] = 'true' self.config_file_str = self.config_file_str.format(**self.config_file_format)