diff --git a/app/middleware/AsyncHttpClient.py b/app/middleware/AsyncHttpClient.py index 25dc2fc7..470e794a 100755 --- a/app/middleware/AsyncHttpClient.py +++ b/app/middleware/AsyncHttpClient.py @@ -97,7 +97,8 @@ async def client(url: str, body_type: BodyType = BodyType.json, timeout=15, **kw @staticmethod async def get_resp(resp): try: - data = await resp.json(encoding='utf-8') + data = await resp.text() + data = json.loads(data) # 说明是json格式 # return json.dumps(data, ensure_ascii=False, indent=4), True except: