This commit is contained in:
邹宗楠
2022-06-07 17:30:03 +08:00
parent fa07c3fc7a
commit 27ff2d16c2

View File

@@ -79,7 +79,10 @@ func onTTPayFinished(msg *tiktok.DetailCallBackMessage) (err error) {
} else {
orderPay.Status = model.PayStatusFailed
}
dao.UpdateEntity(db, &orderPay)
num, err := dao.UpdateEntity(db, &orderPay)
globals.SugarLogger.Debug("退款回调==================err", err)
globals.SugarLogger.Debug("退款回调==================err", num)
if msg.Status == tiktok.ResponseCodeSuccess {
err = OnPayFinished(orderPay)
}
@@ -132,8 +135,8 @@ func RefundOrderByTT(ctx *jxcontext.Context, orderPay *model.OrderPay, refundID
CpExtra: "msg",
NotifyURL: globals.TictokpayNotifyURL,
})
globals.SugarLogger.Debug("申请退款============",err)
globals.SugarLogger.Debug("申请退款============",result)
globals.SugarLogger.Debug("申请退款============", err)
globals.SugarLogger.Debug("申请退款============", result)
if err == nil {
orderPayRefund = &model.OrderPayRefund{
RefundID: refundID,
@@ -160,4 +163,3 @@ func RefundOrderByTT(ctx *jxcontext.Context, orderPay *model.OrderPay, refundID
}
return orderPayRefund, err
}