This commit is contained in:
aaron 2025-02-25 11:42:12 +08:00
parent 44305b6dfd
commit 0d2e503965
2 changed files with 2 additions and 3 deletions

View File

@ -352,8 +352,7 @@ async def get_order_detail(
# 计算配送员分账金额
deliveryman_share = 0
if current_user.delivery_commission_rate:
if current_user.delivery_commission_rate is not None:
deliveryman_share = round(order.original_amount * (current_user.delivery_commission_rate / 100.0), 1)
# 如果有配送员 id则获取配送员信息

View File

@ -95,6 +95,6 @@ async def exception_handler(request, exc):
await wecom_bot.send_markdown(exception_log)
return CustomJSONResponse(
status_code=exc.status_code,
status_code=500,
content=str(exc)
)