This commit is contained in:
aaron 2025-02-25 11:35:56 +08:00
parent 9ecc590c9d
commit 44305b6dfd

View File

@ -351,6 +351,9 @@ async def get_order_detail(
return error_response(code=404, message="订单不存在")
# 计算配送员分账金额
deliveryman_share = 0
if current_user.delivery_commission_rate:
deliveryman_share = round(order.original_amount * (current_user.delivery_commission_rate / 100.0), 1)
# 如果有配送员 id则获取配送员信息