配送方增加京东物流
This commit is contained in:
@@ -45,6 +45,8 @@ const (
|
|||||||
VendorIDAutonavi = 321 // 高德导航
|
VendorIDAutonavi = 321 // 高德导航
|
||||||
VendorIDQiNiuCloud = 323 // 七牛云
|
VendorIDQiNiuCloud = 323 // 七牛云
|
||||||
VendorIDShowAPI = 325 // 万维易源
|
VendorIDShowAPI = 325 // 万维易源
|
||||||
|
|
||||||
|
VendorIDJDWL = 401 //京东物流
|
||||||
)
|
)
|
||||||
|
|
||||||
type VendorInfo struct {
|
type VendorInfo struct {
|
||||||
@@ -95,6 +97,7 @@ var (
|
|||||||
|
|
||||||
VendorIDDada: "达达众包",
|
VendorIDDada: "达达众包",
|
||||||
VendorIDMTPS: "美团配送",
|
VendorIDMTPS: "美团配送",
|
||||||
|
VendorIDJDWL: "京东物流",
|
||||||
|
|
||||||
VendorIDFeiE: "飞鹅",
|
VendorIDFeiE: "飞鹅",
|
||||||
VendorIDXiaoWM: "外卖管家",
|
VendorIDXiaoWM: "外卖管家",
|
||||||
|
|||||||
@@ -572,7 +572,10 @@ func jxOrder2GoodsOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, deliveryAd
|
|||||||
}
|
}
|
||||||
order.TotalShopMoney += jxOrder.FreightPrice
|
order.TotalShopMoney += jxOrder.FreightPrice
|
||||||
order.ActualPayPrice = order.TotalShopMoney
|
order.ActualPayPrice = order.TotalShopMoney
|
||||||
order.FromStoreID = jxOrder.FromStoreID
|
if jxOrder.FromStoreID != 0 {
|
||||||
|
order.FromStoreID = jxOrder.FromStoreID
|
||||||
|
order.WaybillVendorID = model.VendorIDJDWL
|
||||||
|
}
|
||||||
return order, err
|
return order, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user