测试接口

This commit is contained in:
苏尹岚
2020-08-27 16:45:53 +08:00
parent ee66811c6f
commit 78211f3799

View File

@@ -604,7 +604,6 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
outJxOrder2.Weight = 0 outJxOrder2.Weight = 0
outJxOrder = &outJxOrder2 outJxOrder = &outJxOrder2
outJxOrder.StoreName = storeDetail.Name outJxOrder.StoreName = storeDetail.Name
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
skus := formalizeSkus(jxOrder.Skus) skus := formalizeSkus(jxOrder.Skus)
// 允许空商品列表(一般用于测试配送地址,门店信息是否合适) // 允许空商品列表(一般用于测试配送地址,门店信息是否合适)
if len(skus) > 0 { if len(skus) > 0 {
@@ -870,6 +869,7 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
if IsDeliverySelf { if IsDeliverySelf {
outJxOrder.FreightPrice = 0 outJxOrder.FreightPrice = 0
} }
outJxOrder.Skus[0].DefendPrice = jxOrder.Skus[0].DefendPrice
} }
if err == nil { if err == nil {
outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice outJxOrder.TotalPrice = outJxOrder.OrderPrice + outJxOrder.FreightPrice