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,