From 8874b0b96c7af5dd15d4861de01208909c061fcc Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Thu, 19 Jun 2025 02:34:34 +0800 Subject: [PATCH] debug wechatpayrefundcallback --- app/main/api/internal/logic/pay/wechatpayrefundcallbacklogic.go | 2 +- app/main/api/internal/service/wechatpayService.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main/api/internal/logic/pay/wechatpayrefundcallbacklogic.go b/app/main/api/internal/logic/pay/wechatpayrefundcallbacklogic.go index 16cc447..b55d612 100644 --- a/app/main/api/internal/logic/pay/wechatpayrefundcallbacklogic.go +++ b/app/main/api/internal/logic/pay/wechatpayrefundcallbacklogic.go @@ -139,7 +139,7 @@ func (l *WechatPayRefundCallbackLogic) WechatPayRefundCallback(w http.ResponseWr l.sendSuccessResponse(w) return nil } - + logx.Infof("【微信退款回调通知】: %+v", notification) orderNo := *notification.OutTradeNo var processErr error diff --git a/app/main/api/internal/service/wechatpayService.go b/app/main/api/internal/service/wechatpayService.go index c0ba849..2452254 100644 --- a/app/main/api/internal/service/wechatpayService.go +++ b/app/main/api/internal/service/wechatpayService.go @@ -350,7 +350,7 @@ func (w *WechatPayService) WeChatRefund(ctx context.Context, outTradeNo string, Currency: core.String("CNY"), Refund: core.Int64(lzUtils.ToWechatAmount(refundAmount)), Total: core.Int64(lzUtils.ToWechatAmount(totalAmount)), - }, + }, }) if err != nil { return fmt.Errorf("微信订单申请退款错误: %v", err)