From fe136e949338be40ac2fa241494b17d46f9d3a6f Mon Sep 17 00:00:00 2001 From: XTer Date: Tue, 9 Apr 2024 04:00:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api_v2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api_v2.py b/api_v2.py index e58ff323..8684338f 100644 --- a/api_v2.py +++ b/api_v2.py @@ -171,7 +171,7 @@ class TTS_Request(BaseModel): for key in req: if hasattr(self, key): type_ = type(getattr(self, key)) - value = unquote(req[key]) + value = unquote(str(req[key])) if type_ == bool: value = value.lower() in ["true", "1"] elif type_ == int: