diff --git a/routers/img.py b/routers/img.py index 105b6e7..a0fb907 100644 --- a/routers/img.py +++ b/routers/img.py @@ -72,8 +72,7 @@ def get_image_type_thumbnail(type:str, id:str, version:str, n:int, w:int, ext:st if user is None: print('用户不存在:', count) return Response('用户不存在', status_code=404) - print("user:", user) - url = user['avatar'] + url = user[0] else: print('图片类型不存在:', type) return Response('图片类型不存在', status_code=404) @@ -115,7 +114,7 @@ def get_image_type(type:str, id:str, version:str, ext:str): if user is None: print('用户不存在:', count) return Response('用户不存在', status_code=404) - url = user['avatar'] + url = user[0] else: print('图片类型不存在:', type) return Response('图片类型不存在', status_code=404)