- 对于达达,特殊处理昆山市,常熟市和太仓市
This commit is contained in:
@@ -64,6 +64,9 @@ var (
|
||||
"苏州工业园区": "工业园区",
|
||||
"郫都区": "郫县",
|
||||
"管城回族区": "管城区",
|
||||
"昆山市": "1",
|
||||
"常熟市": "1",
|
||||
"太仓市": "1",
|
||||
}
|
||||
)
|
||||
|
||||
@@ -951,7 +954,12 @@ func updateOrCreateDadaStore(storeDetail *dao.StoreDetail2) (err error) {
|
||||
return fmt.Errorf("门店的城市码有问题,请检查")
|
||||
}
|
||||
if dadaDistrictMap[storeDetail.DistrictName] != "" {
|
||||
storeDetail.DistrictName = dadaDistrictMap[storeDetail.DistrictName]
|
||||
if dadaDistrictMap[storeDetail.DistrictName] == "1" { // 区镇信息
|
||||
storeDetail.CityName = storeDetail.DistrictName
|
||||
storeDetail.DistrictName, _ = api.AutonaviAPI.GetCoordinateTownInfo(jxutils.IntCoordinate2Standard(storeDetail.Lng), jxutils.IntCoordinate2Standard(storeDetail.Lat))
|
||||
} else {
|
||||
storeDetail.DistrictName = dadaDistrictMap[storeDetail.DistrictName]
|
||||
}
|
||||
}
|
||||
if globals.EnableStoreWrite {
|
||||
_, err = api.DadaAPI.ShopDetail(storeDetail.DadaStoreID)
|
||||
|
||||
Reference in New Issue
Block a user