update
This commit is contained in:
parent
6f850eb28e
commit
16e398c744
@ -285,6 +285,7 @@ async def get_order_detail(
|
||||
MerchantOrderDB,
|
||||
MerchantProductDB.name.label('product_name'),
|
||||
MerchantProductDB.image_url.label('product_image'),
|
||||
MerchantProductDB.tags.label('product_tags'),
|
||||
MerchantDB.name.label('merchant_name'),
|
||||
MerchantDB.latitude.label('merchant_latitude'),
|
||||
MerchantDB.longitude.label('merchant_longitude'),
|
||||
@ -332,6 +333,7 @@ async def get_order_detail(
|
||||
"update_time": order.MerchantOrderDB.update_time,
|
||||
# 商品信息
|
||||
"product_name": order.product_name,
|
||||
"product_tags": order.product_tags,
|
||||
"product_image": process_image(order.product_image).thumbnail(width=450, height=450).format(ImageFormat.WEBP).build(),
|
||||
# 商家信息
|
||||
"merchant_name": order.merchant_name,
|
||||
@ -339,7 +341,7 @@ async def get_order_detail(
|
||||
"merchant_longitude": order.merchant_longitude,
|
||||
"merchant_phone": order.merchant_phone,
|
||||
# 距离信息
|
||||
"distance": round(order[7]) if order[7] else None
|
||||
"distance": round(order[8]) if order[8] else None
|
||||
}
|
||||
|
||||
return success_response(data=order_data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user