1
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user