From 6f850eb28e89e8f462868c57cfc7c99a80d50b77 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Thu, 13 Feb 2025 22:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/endpoints/merchant_order.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/endpoints/merchant_order.py b/app/api/endpoints/merchant_order.py index 8833fbc..f6b25e5 100644 --- a/app/api/endpoints/merchant_order.py +++ b/app/api/endpoints/merchant_order.py @@ -133,7 +133,7 @@ async def get_user_orders( "update_time": order.MerchantOrderDB.update_time, # 商品信息 "product_name": order.product_name, - "product_image": order.product_image, + "product_image": process_image(order.product_image).thumbnail(width=450, height=450).format(ImageFormat.WEBP).build(), "product_tags": order.product_tags, # 商家信息 "merchant_name": order.merchant_name, @@ -332,7 +332,7 @@ async def get_order_detail( "update_time": order.MerchantOrderDB.update_time, # 商品信息 "product_name": order.product_name, - "product_image": order.product_image, + "product_image": process_image(order.product_image).thumbnail(width=450, height=450).format(ImageFormat.WEBP).build(), # 商家信息 "merchant_name": order.merchant_name, "merchant_latitude": order.merchant_latitude,