修正bug

This commit is contained in:
XTer 2024-04-09 04:00:55 +08:00
parent 745bd44132
commit fe136e9493

View File

@ -171,7 +171,7 @@ class TTS_Request(BaseModel):
for key in req: for key in req:
if hasattr(self, key): if hasattr(self, key):
type_ = type(getattr(self, key)) type_ = type(getattr(self, key))
value = unquote(req[key]) value = unquote(str(req[key]))
if type_ == bool: if type_ == bool:
value = value.lower() in ["true", "1"] value = value.lower() in ["true", "1"]
elif type_ == int: elif type_ == int: