通联宝回调

This commit is contained in:
苏尹岚
2020-03-02 12:34:10 +08:00
parent f20bc5b5b2
commit af24c63a1f

View File

@@ -70,7 +70,9 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) {
orderPay.DeletedAt = utils.DefaultTimeValue
db := dao.GetDB()
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.OriginalData = utils.Format4Output(call, true)
if call.TrxStatus == tonglianpayapi.TrxStatusSuccess {