通联宝回调
This commit is contained in:
@@ -70,7 +70,9 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) {
|
|||||||
orderPay.DeletedAt = utils.DefaultTimeValue
|
orderPay.DeletedAt = utils.DefaultTimeValue
|
||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
if err = dao.GetEntity(db, orderPay, "PayOrderID", "PayType", "DeletedAt"); err == nil {
|
if err = dao.GetEntity(db, orderPay, "PayOrderID", "PayType", "DeletedAt"); err == nil {
|
||||||
orderPay.PayFinishedAt = utils.Time2Pointer(utils.Str2Time(call.PayTime))
|
loc, _ := time.LoadLocation("Local")
|
||||||
|
t1, _ := time.ParseInLocation("20060102150405", call.PayTime, loc)
|
||||||
|
orderPay.PayFinishedAt = utils.Time2Pointer(t1)
|
||||||
// orderPay.TransactionID = call.ChnlTrxID
|
// orderPay.TransactionID = call.ChnlTrxID
|
||||||
orderPay.OriginalData = utils.Format4Output(call, true)
|
orderPay.OriginalData = utils.Format4Output(call, true)
|
||||||
if call.TrxStatus == tonglianpayapi.TrxStatusSuccess {
|
if call.TrxStatus == tonglianpayapi.TrxStatusSuccess {
|
||||||
|
|||||||
Reference in New Issue
Block a user