From 514c8df36524e2dda69cef9dfc16bcf6ece88397 Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Sat, 23 Dec 2023 21:31:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=BA=90=E8=84=9A=E6=9C=ACAPI=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/lx_script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lx_script.py b/common/lx_script.py index aebbb84..96f0318 100644 --- a/common/lx_script.py +++ b/common/lx_script.py @@ -52,7 +52,7 @@ async def generate_script_response(request): for line in scriptLines: line = line.strip() if (line.startswith('const API_URL')): - newScriptLines.append(f'const API_URL = "{request.scheme}://{request.host}/"') + newScriptLines.append(f'const API_URL = "{request.scheme}://{request.host}"') elif (line.startswith('const API_KEY')): newScriptLines.append(f'const API_KEY = "{config.read_config("security.key.value")}"') else: