From 090d935f56d133eedd3519547deb796aca24318a Mon Sep 17 00:00:00 2001 From: aaron <> Date: Thu, 3 Apr 2025 18:17:45 +0800 Subject: [PATCH] update --- app/api/endpoints/order.py | 4 ++-- jobs.sqlite | Bin 24576 -> 24576 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/endpoints/order.py b/app/api/endpoints/order.py index e3ad6a1..4783a2e 100644 --- a/app/api/endpoints/order.py +++ b/app/api/endpoints/order.py @@ -906,7 +906,7 @@ async def cancel_order( db.commit() - if order.final_amount > 0: + if order.transaction_id: wechat = WeChatClient() await wechat.apply_refund( order_id=order.orderid, @@ -1168,7 +1168,7 @@ async def deliveryman_cancel_order( db.commit() - if order.final_amount > 0: + if order.transaction_id: wechat = WeChatClient() await wechat.apply_refund( order_id=order.orderid, diff --git a/jobs.sqlite b/jobs.sqlite index a8bb479221faa47cfd0e45e55e48d8f46214e9ad..d427c3e73fb69426ef8922c4f047ea437478d563 100644 GIT binary patch delta 82 zcmZoTz}Rqrae_3X_Cy(HM(vFW`9jR^Hr?24>n_W@`MszyBO}XZW$|7X_IKMm8d#?~ jO?Gsb*?d`AmIWyOQJzVG2Pn?W!OX$}4Co>2h+p$Q!L delta 82 zcmZoTz}Rqrae_3X@