This commit is contained in:
richboo111
2024-01-11 16:59:04 +08:00
parent 9bce704776
commit 80854d6d5b

View File

@@ -327,9 +327,23 @@ 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
globals.SugarLogger.Debugf("uupt test address=%s", 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,