From 9a9e64ac1932cddcc9bdda4b3b74fe50f9ee022f Mon Sep 17 00:00:00 2001 From: lerdb Date: Mon, 22 Jan 2024 12:44:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=B8=8B=E8=BD=BDscript=E7=9A=84bug?= 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 d3f1a2e..1388600 100644 --- a/common/lx_script.py +++ b/common/lx_script.py @@ -72,7 +72,7 @@ async def generate_script_response(request): if (request.query.get('key') != config.read_config('security.key.value') and config.read_config('security.key.enable')): return 'key验证失败' try: - with open('./lx-music-source-example.js', 'r') as f: + with open('./lx-music-source-example.js', 'r', encoding='utf-8') as f: script = f.read() except: return '本地无源脚本'