debug wechatpayrefundcallback
This commit is contained in:
parent
a6053f3f9b
commit
8874b0b96c
@ -139,7 +139,7 @@ func (l *WechatPayRefundCallbackLogic) WechatPayRefundCallback(w http.ResponseWr
|
|||||||
l.sendSuccessResponse(w)
|
l.sendSuccessResponse(w)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
logx.Infof("【微信退款回调通知】: %+v", notification)
|
||||||
orderNo := *notification.OutTradeNo
|
orderNo := *notification.OutTradeNo
|
||||||
var processErr error
|
var processErr error
|
||||||
|
|
||||||
|
@ -350,7 +350,7 @@ func (w *WechatPayService) WeChatRefund(ctx context.Context, outTradeNo string,
|
|||||||
Currency: core.String("CNY"),
|
Currency: core.String("CNY"),
|
||||||
Refund: core.Int64(lzUtils.ToWechatAmount(refundAmount)),
|
Refund: core.Int64(lzUtils.ToWechatAmount(refundAmount)),
|
||||||
Total: core.Int64(lzUtils.ToWechatAmount(totalAmount)),
|
Total: core.Int64(lzUtils.ToWechatAmount(totalAmount)),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("微信订单申请退款错误: %v", err)
|
return fmt.Errorf("微信订单申请退款错误: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user