This commit is contained in:
aaron 2025-04-02 16:12:30 +08:00
parent 5b6459c220
commit 32d85cf692
2 changed files with 14 additions and 12 deletions

View File

@ -906,6 +906,7 @@ async def cancel_order(
db.commit() db.commit()
if order.final_amount > 0:
wechat = WeChatClient() wechat = WeChatClient()
await wechat.apply_refund( await wechat.apply_refund(
order_id=order.orderid, order_id=order.orderid,
@ -1167,6 +1168,7 @@ async def deliveryman_cancel_order(
db.commit() db.commit()
if order.final_amount > 0:
wechat = WeChatClient() wechat = WeChatClient()
await wechat.apply_refund( await wechat.apply_refund(
order_id=order.orderid, order_id=order.orderid,

Binary file not shown.