1
This commit is contained in:
@@ -62,7 +62,6 @@ func pay4OrderByKs(ctx *jxcontext.Context, order *model.GoodsOrder, vendorPayTyp
|
|||||||
}
|
}
|
||||||
// 预下单
|
// 预下单
|
||||||
prePayInfo, err := api.KuaiShouApi.PreCreateOrder(param)
|
prePayInfo, err := api.KuaiShouApi.PreCreateOrder(param)
|
||||||
globals.SugarLogger.Debugf("=======err : %v", err)
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
orderPay = &model.OrderPay{
|
orderPay = &model.OrderPay{
|
||||||
PayOrderID: order.VendorOrderID, // 抖音订单id
|
PayOrderID: order.VendorOrderID, // 抖音订单id
|
||||||
@@ -72,8 +71,8 @@ func pay4OrderByKs(ctx *jxcontext.Context, order *model.GoodsOrder, vendorPayTyp
|
|||||||
VendorID: order.VendorID,
|
VendorID: order.VendorID,
|
||||||
Status: 0,
|
Status: 0,
|
||||||
PayCreatedAt: time.Now(),
|
PayCreatedAt: time.Now(),
|
||||||
PrepayID: "",
|
PrepayID: prePayInfo.OrderInfoToken,
|
||||||
CodeURL: prePayInfo, // 抖音支付token
|
CodeURL: prePayInfo.OrderNo, // 抖音支付token
|
||||||
TotalFee: int(order.ActualPayPrice),
|
TotalFee: int(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user