From 82a48afd58484c90065c323b8daf6858bcd4b3ef Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 21 Aug 2024 09:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/controller/CallBack.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/controller/CallBack.go b/api/controller/CallBack.go index dc947fc..ce0cb3f 100644 --- a/api/controller/CallBack.go +++ b/api/controller/CallBack.go @@ -24,8 +24,8 @@ func (r *CallBack) WxPaySingle(c *gin.Context) { } // 记录日志 - utils.LogJsonErr("微信支付回调-单项", notifyReq) - utils.LogJsonErr("微信支付回调-单项", transaction) + utils.LogJsonErr("微信支付回调-单项", *notifyReq) + utils.LogJsonErr("微信支付回调-单项", *transaction) if transaction == nil { c.JSON(http.StatusBadRequest, gin.H{"code": "ERROR", "message": "缺少订单数据"}) @@ -139,8 +139,8 @@ func (r *CallBack) WxPayMember(c *gin.Context) { } // 记录日志 - utils.LogJsonErr("微信支付回调-会员", notifyReq) - utils.LogJsonErr("微信支付回调-会员", transaction) + utils.LogJsonErr("微信支付回调-会员", *notifyReq) + utils.LogJsonErr("微信支付回调-会员", *transaction) if transaction == nil { c.JSON(http.StatusBadRequest, gin.H{"code": "ERROR", "message": "缺少订单数据"}) @@ -264,8 +264,8 @@ func (r *CallBack) WxPaySingleRefund(c *gin.Context) { } // 记录日志 - utils.LogJsonErr("微信退款回调-单项", notifyReq) - utils.LogJsonErr("微信退款回调-单项", refund) + utils.LogJsonErr("微信退款回调-单项", *notifyReq) + utils.LogJsonErr("微信退款回调-单项", *refund) if refund == nil { c.JSON(http.StatusBadRequest, gin.H{"code": "ERROR", "message": "缺少订单数据"}) @@ -373,8 +373,8 @@ func (r *CallBack) WxPayMemberRefund(c *gin.Context) { } // 记录日志 - utils.LogJsonErr("微信退款回调-会员", notifyReq) - utils.LogJsonErr("微信退款回调-会员", refund) + utils.LogJsonErr("微信退款回调-会员", *notifyReq) + utils.LogJsonErr("微信退款回调-会员", *refund) if refund == nil { c.JSON(http.StatusBadRequest, gin.H{"code": "ERROR", "message": "缺少订单数据"})