fix(pay): 微信支付退款失败时记录错误信息

- 在退款响应中添加状态信息字段
- 当退款失败时设置并返回具体的错误状态
- 更新订单退款状态时增加对退款失败情况的日志记录
This commit is contained in:
2025-12-17 17:52:58 +08:00
parent c8560e3aca
commit 2dcb736df5
3 changed files with 4 additions and 0 deletions

View File

@@ -190,6 +190,8 @@ public class WxPayServiceImpl implements WxPayService {
orderUpdateReq.setRefundStatus(OrderStateEnum.REFUNDED.getType());
orderUpdateReq.setRefundAt(new Date());
orderMapper.update(orderUpdateReq);
} else {
log.error("[微信支付]refund error: {}", response.getMessage());
}
});
return true;