update
This commit is contained in:
parent
32d85cf692
commit
090d935f56
@ -906,7 +906,7 @@ async def cancel_order(
|
|||||||
|
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
if order.final_amount > 0:
|
if order.transaction_id:
|
||||||
wechat = WeChatClient()
|
wechat = WeChatClient()
|
||||||
await wechat.apply_refund(
|
await wechat.apply_refund(
|
||||||
order_id=order.orderid,
|
order_id=order.orderid,
|
||||||
@ -1168,7 +1168,7 @@ async def deliveryman_cancel_order(
|
|||||||
|
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
if order.final_amount > 0:
|
if order.transaction_id:
|
||||||
wechat = WeChatClient()
|
wechat = WeChatClient()
|
||||||
await wechat.apply_refund(
|
await wechat.apply_refund(
|
||||||
order_id=order.orderid,
|
order_id=order.orderid,
|
||||||
|
|||||||
BIN
jobs.sqlite
BIN
jobs.sqlite
Binary file not shown.
Loading…
Reference in New Issue
Block a user