debug wechatpayrefundcallback

This commit is contained in:
liangzai 2025-06-19 02:34:34 +08:00
parent a6053f3f9b
commit 8874b0b96c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)