623ca8c8 by 周伟奇

fix bug

1 parent 0c6c7693
...@@ -202,7 +202,7 @@ class Command(BaseCommand, LoggerMixin): ...@@ -202,7 +202,7 @@ class Command(BaseCommand, LoggerMixin):
202 @staticmethod 202 @staticmethod
203 async def fetch_bc_name_result(url, json_data): 203 async def fetch_bc_name_result(url, json_data):
204 async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False)) as session: 204 async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False)) as session:
205 async with session.post(url, data=json_data) as response: 205 async with session.post(url, json=json_data) as response:
206 if response.status == 200: 206 if response.status == 200:
207 return await response.json() 207 return await response.json()
208 208
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!