1
This commit is contained in:
parent
44305b6dfd
commit
0d2e503965
@ -352,8 +352,7 @@ async def get_order_detail(
|
|||||||
|
|
||||||
# 计算配送员分账金额
|
# 计算配送员分账金额
|
||||||
deliveryman_share = 0
|
deliveryman_share = 0
|
||||||
|
if current_user.delivery_commission_rate is not None:
|
||||||
if current_user.delivery_commission_rate:
|
|
||||||
deliveryman_share = round(order.original_amount * (current_user.delivery_commission_rate / 100.0), 1)
|
deliveryman_share = round(order.original_amount * (current_user.delivery_commission_rate / 100.0), 1)
|
||||||
|
|
||||||
# 如果有配送员 id,则获取配送员信息
|
# 如果有配送员 id,则获取配送员信息
|
||||||
|
|||||||
@ -95,6 +95,6 @@ async def exception_handler(request, exc):
|
|||||||
await wecom_bot.send_markdown(exception_log)
|
await wecom_bot.send_markdown(exception_log)
|
||||||
|
|
||||||
return CustomJSONResponse(
|
return CustomJSONResponse(
|
||||||
status_code=exc.status_code,
|
status_code=500,
|
||||||
content=str(exc)
|
content=str(exc)
|
||||||
)
|
)
|
||||||
Loading…
Reference in New Issue
Block a user