This commit is contained in:
aaron 2025-02-19 14:04:33 +08:00
parent 0a0acfbba7
commit bb777b29c1

View File

@ -796,8 +796,6 @@ async def complete_order(
# 更新完成时间
order.completed_time = datetime.now()
db.commit()
# 计算配送员分账金额
deliveryman_share = order.original_amount * settings.ORDER_DELIVERYMAN_SHARE_RATIO
@ -810,6 +808,8 @@ async def complete_order(
transaction_id=orderid
)
db.commit()
# 发送模板消息
if order.userid:
order_user = db.query(UserDB).filter(