From e18ef5a25ef2e36541845933709e37aebc825504 Mon Sep 17 00:00:00 2001 From: qwerdvd <2450899274@qq.com> Date: Wed, 17 May 2023 15:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=E4=BF=AE=E6=AD=A3res=20decode?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StarRailUID/utils/resource/download_from_cos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StarRailUID/utils/resource/download_from_cos.py b/StarRailUID/utils/resource/download_from_cos.py index c9c6ee8..e3bb272 100644 --- a/StarRailUID/utils/resource/download_from_cos.py +++ b/StarRailUID/utils/resource/download_from_cos.py @@ -14,7 +14,8 @@ with open( Path(__file__).parent / 'resource_map.json', 'r', encoding='UTF-8' ) as f: resource_map = msgjson.decode( - f.read(), type=Dict[str, Dict[str, Dict[str, Union[int, str]]]] + f.read(), + type=Dict[str, Dict[str, Dict[str, Dict[str, Union[int, str]]]]], )