diff --git a/business/partner/purchase/jx/localjx/tonglianpay.go b/business/partner/purchase/jx/localjx/tonglianpay.go index b766d8f66..3e154de3a 100644 --- a/business/partner/purchase/jx/localjx/tonglianpay.go +++ b/business/partner/purchase/jx/localjx/tonglianpay.go @@ -38,7 +38,7 @@ func pay4OrderByTL(ctx *jxcontext.Context, order *model.GoodsOrder, vendorPayTyp PayOrderID: param.Reqsn, PayType: model.PayTypeTL, VendorPayType: vendorPayType, - + TransactionID: result.TrxID, VendorOrderID: order.VendorOrderID, VendorID: order.VendorID, Status: 0, @@ -71,7 +71,7 @@ func onTLpayFinished(call *tonglianpayapi.CallBackResult) (err error) { db := dao.GetDB() if err = dao.GetEntity(db, orderPay, "PayOrderID", "PayType", "DeletedAt"); err == nil { orderPay.PayFinishedAt = utils.Time2Pointer(utils.Str2Time(call.PayTime)) - orderPay.TransactionID = call.ChnlTrxID + // orderPay.TransactionID = call.ChnlTrxID orderPay.OriginalData = utils.Format4Output(call, true) if call.TrxStatus == tonglianpayapi.TrxStatusSuccess { orderPay.Status = model.PayStatusYes @@ -121,10 +121,11 @@ func onTLpayRefund(call *tonglianpayapi.CallBackResult) (err error) { func refundOrderByTL(ctx *jxcontext.Context, orderPay *model.OrderPay, refundID string, refundFee int, refundDesc string) (orderPayRefund *model.OrderPayRefund, err error) { result, err := api.TLpayAPI.PayRefund(&tonglianpayapi.PayRefundParam{ - Trxamt: orderPay.TotalFee, - Reqsn: refundID, - OldReqsn: orderPay.VendorOrderID, + Trxamt: orderPay.TotalFee, + Reqsn: utils.GetUUID(), + // OldReqsn: orderPay.VendorOrderID, Remark: refundDesc, + OldTrxID: orderPay.TransactionID, }) if err == nil { orderPayRefund = &model.OrderPayRefund{