1
This commit is contained in:
@@ -327,9 +327,23 @@ func getOrderPrice(order *model.GoodsOrder) (orderPrice *uuptapi.GetOrderPriceRe
|
|||||||
} else {
|
} else {
|
||||||
tempWeight = int(order.Weight / 1000)
|
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
|
||||||
|
globals.SugarLogger.Debugf("uupt test address=%s", address)
|
||||||
|
|
||||||
param := map[string]interface{}{
|
param := map[string]interface{}{
|
||||||
"origin_id": order.VendorOrderID,
|
"origin_id": order.VendorOrderID,
|
||||||
"from_address": store.Address,
|
"from_address": address,
|
||||||
"from_usernote": "京西菜市(" + store.Store.Name + ")",
|
"from_usernote": "京西菜市(" + store.Store.Name + ")",
|
||||||
"to_address": order.ConsigneeAddress,
|
"to_address": order.ConsigneeAddress,
|
||||||
"city_name": store.CityName,
|
"city_name": store.CityName,
|
||||||
|
|||||||
Reference in New Issue
Block a user