fix bilibili get user info

This commit is contained in:
felinae98 2021-02-06 20:55:39 +08:00
parent 6aa6fe293e
commit 1bd1bccc9b
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -89,4 +89,4 @@ async def get_user_info(mid):
res_data = json.loads(res.text)
if res_data['code']:
return None
return res['data']['name']
return res_data['data']['name']