通联宝支付测试

This commit is contained in:
苏尹岚
2020-02-27 14:00:33 +08:00
parent fdc91c20e4
commit cc5e35caa6

View File

@@ -170,17 +170,17 @@ func refundOrderByTL(ctx *jxcontext.Context, orderPay *model.OrderPay, refundID
RefundFee: orderPay.TotalFee,
RefundCreatedAt: time.Now(),
}
}
db := dao.GetDB()
if result.TrxStatus == tonglianpayapi.TrxStatusSuccess {
orderPayRefund.Status = model.RefundStatusYes
} else {
orderPayRefund.Status = model.RefundStatusFailed
}
orderPayRefund.OriginalData = utils.Format4Output(result, true)
dao.CreateEntity(db, orderPayRefund)
db := dao.GetDB()
if result.TrxStatus == tonglianpayapi.TrxStatusSuccess {
orderPayRefund.Status = model.RefundStatusYes
} else {
orderPayRefund.Status = model.RefundStatusFailed
}
orderPayRefund.OriginalData = utils.Format4Output(result, true)
dao.CreateEntity(db, orderPayRefund)
orderPay.Status = model.PayStatusRefund
dao.UpdateEntity(db, orderPay)
orderPay.Status = model.PayStatusRefund
dao.UpdateEntity(db, orderPay)
}
return orderPayRefund, err
}