From 02732fc60675e5e378d76fd2c9ac93ce350ddefa Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sat, 15 Feb 2025 18:28:25 +0800 Subject: [PATCH] update --- app/api/endpoints/merchant_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/endpoints/merchant_order.py b/app/api/endpoints/merchant_order.py index ee76c7f..def7228 100644 --- a/app/api/endpoints/merchant_order.py +++ b/app/api/endpoints/merchant_order.py @@ -262,7 +262,8 @@ async def apply_refund( wechat = WeChatClient() await wechat.apply_refund( order_id=order.order_id, - total_amount=int(float(order.pay_amount) * 100), # 转换为分 + # total_amount=int(float(order.pay_amount) * 100), # 转换为分 + total_amount=int(1), # 测试 1 分钱 reason="用户申请退款" )