diff --git a/business/partner/delivery/uupt/waybill.go b/business/partner/delivery/uupt/waybill.go index ed194c67f..ba5cb80e0 100644 --- a/business/partner/delivery/uupt/waybill.go +++ b/business/partner/delivery/uupt/waybill.go @@ -313,8 +313,8 @@ func getOrderPrice(order *model.GoodsOrder) (orderPrice *uuptapi.GetOrderPriceRe // toLat = coords[1].Lat // toLng = coords[1].Lng //} - fromLat = jxutils.IntCoordinate2Standard(store.Lng) - fromLng = jxutils.IntCoordinate2Standard(store.Lat) + fromLat = jxutils.IntCoordinate2Standard(store.Lat) + fromLng = jxutils.IntCoordinate2Standard(store.Lng) toLat = jxutils.IntCoordinate2Standard(order.ConsigneeLat) toLng = jxutils.IntCoordinate2Standard(order.ConsigneeLng) @@ -327,9 +327,22 @@ func getOrderPrice(order *model.GoodsOrder) (orderPrice *uuptapi.GetOrderPriceRe } else { tempWeight = int(order.Weight / 1000) } + + //地址特殊判断 + cityName := store.CityName + districtName := store.DistrictName + address := "" + if !strings.Contains(store.Address, cityName) { //城市 + address += cityName + } + if !strings.Contains(store.Address, districtName) { //行政区 + address += districtName + } + address += store.Address + param := map[string]interface{}{ "origin_id": order.VendorOrderID, - "from_address": store.Address, + "from_address": address, "from_usernote": "京西菜市(" + store.Store.Name + ")", "to_address": order.ConsigneeAddress, "city_name": store.CityName,