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": "缺少订单数据"})