From 59bb1910df26d0faa9f12b6329742f27613690d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=A3=E4=BB=99?= Date: Mon, 11 Nov 2024 17:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routers/img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/img.py b/routers/img.py index 407300a..58ad8bf 100644 --- a/routers/img.py +++ b/routers/img.py @@ -154,7 +154,7 @@ def get_image_thumbnail(id:int, version:str, n:int, w:int, ext:str): if img is None: print('图片不存在:', id) return Response('图片不存在', status_code=404) - image = download_image(img[0]) + image = download_image(img['content']) if not image: return Response('图片不存在', status_code=404) image.thumbnail((n*w, image.size[1]))