mirror of
https://github.com/WhaleFell/SMSBoom.git
synced 2026-02-11 14:35:02 +08:00
🐞 fix: web bug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user