配送方增加京东物流

This commit is contained in:
苏尹岚
2020-03-10 09:53:45 +08:00
parent 6fe1659dce
commit 18e72079c5
2 changed files with 7 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ const (
VendorIDAutonavi = 321 // 高德导航
VendorIDQiNiuCloud = 323 // 七牛云
VendorIDShowAPI = 325 // 万维易源
VendorIDJDWL = 401 //京东物流
)
type VendorInfo struct {
@@ -95,6 +97,7 @@ var (
VendorIDDada: "达达众包",
VendorIDMTPS: "美团配送",
VendorIDJDWL: "京东物流",
VendorIDFeiE: "飞鹅",
VendorIDXiaoWM: "外卖管家",

View File

@@ -572,7 +572,10 @@ func jxOrder2GoodsOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, deliveryAd
}
order.TotalShopMoney += jxOrder.FreightPrice
order.ActualPayPrice = order.TotalShopMoney
order.FromStoreID = jxOrder.FromStoreID
if jxOrder.FromStoreID != 0 {
order.FromStoreID = jxOrder.FromStoreID
order.WaybillVendorID = model.VendorIDJDWL
}
return order, err
}