From a748c9d750c0930df53456b47b85a58358168188 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 28 May 2025 08:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=A3=81=E7=BA=B8=E5=8A=A9=E6=89=8B=E4=BB=A5=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=9B=B4=E5=A4=9A=E5=9B=BE=E7=89=87=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helper/wallpaper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helper/wallpaper.py b/app/helper/wallpaper.py index 6238f455..adacbe27 100644 --- a/app/helper/wallpaper.py +++ b/app/helper/wallpaper.py @@ -91,7 +91,7 @@ class WallpaperHelper(metaclass=Singleton): if resp and resp.status_code == 200: # 如果返回的是图片格式 content_type = resp.headers.get('Content-Type') - if content_type and content_type.lower() == 'image/jpeg': + if content_type and content_type.lower().startswith('image/'): wallpaper_list.append(settings.CUSTOMIZE_WALLPAPER_API_URL) else: try: