打印数据

This commit is contained in:
wucongxing8150 2024-08-21 09:32:24 +08:00
parent ff65d2800d
commit 82a48afd58

View File

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