🐞 fix: web bug

This commit is contained in:
AdminWhaleFall
2022-04-05 18:41:51 +08:00
parent aff78ff6e4
commit 9db49b6b5e

View File

@@ -63,7 +63,8 @@ class API(BaseModel):
:return: API basemodel
"""
if isinstance(self.data, str):
self.data = json.loads(self.data)
if self.data:
self.data = json.loads(self.data)
if isinstance(self.header, str):
if self.header:
self.header = json.loads(self.header)