1
This commit is contained in:
@@ -79,7 +79,10 @@ func onTTPayFinished(msg *tiktok.DetailCallBackMessage) (err error) {
|
|||||||
} else {
|
} else {
|
||||||
orderPay.Status = model.PayStatusFailed
|
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 {
|
if msg.Status == tiktok.ResponseCodeSuccess {
|
||||||
err = OnPayFinished(orderPay)
|
err = OnPayFinished(orderPay)
|
||||||
}
|
}
|
||||||
@@ -132,8 +135,8 @@ func RefundOrderByTT(ctx *jxcontext.Context, orderPay *model.OrderPay, refundID
|
|||||||
CpExtra: "msg",
|
CpExtra: "msg",
|
||||||
NotifyURL: globals.TictokpayNotifyURL,
|
NotifyURL: globals.TictokpayNotifyURL,
|
||||||
})
|
})
|
||||||
globals.SugarLogger.Debug("申请退款============",err)
|
globals.SugarLogger.Debug("申请退款============", err)
|
||||||
globals.SugarLogger.Debug("申请退款============",result)
|
globals.SugarLogger.Debug("申请退款============", result)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
orderPayRefund = &model.OrderPayRefund{
|
orderPayRefund = &model.OrderPayRefund{
|
||||||
RefundID: refundID,
|
RefundID: refundID,
|
||||||
@@ -160,4 +163,3 @@ func RefundOrderByTT(ctx *jxcontext.Context, orderPay *model.OrderPay, refundID
|
|||||||
}
|
}
|
||||||
return orderPayRefund, err
|
return orderPayRefund, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user