京东商城建店把东莞算进去
This commit is contained in:
@@ -152,11 +152,12 @@ var (
|
|||||||
}
|
}
|
||||||
|
|
||||||
ZXCityCodeMap = map[int]string{
|
ZXCityCodeMap = map[int]string{
|
||||||
310100: "上海市",
|
310100: "上海市",
|
||||||
110100: "北京市",
|
110100: "北京市",
|
||||||
120100: "天津市",
|
120100: "天津市",
|
||||||
440300: "深圳市",
|
440300: "深圳市",
|
||||||
500100: "重庆市",
|
500100: "重庆市",
|
||||||
|
9441900: "东莞",
|
||||||
}
|
}
|
||||||
|
|
||||||
PrinterVendorInfo = map[int][]string{
|
PrinterVendorInfo = map[int][]string{
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
if createEntityStoreParam.AddCode == 0 {
|
if createEntityStoreParam.AddCode == 0 {
|
||||||
createEntityStoreParam.AddCode = store.JdCode
|
createEntityStoreParam.AddCode = store.JdCode
|
||||||
}
|
}
|
||||||
//证明这个店可能隶属直辖市
|
//证明这个店可能隶属直辖市或者东莞
|
||||||
if model.ZXCityCodeMap[store.CityCode] != "" {
|
if model.ZXCityCodeMap[store.CityCode] != "" {
|
||||||
result, _ := api.AutonaviAPI.GetCoordinateAreaInfo(jxutils.IntCoordinate2Standard(store.Lng), jxutils.IntCoordinate2Standard(store.Lat))
|
result, _ := api.AutonaviAPI.GetCoordinateAreaInfo(jxutils.IntCoordinate2Standard(store.Lng), jxutils.IntCoordinate2Standard(store.Lat))
|
||||||
if result["regeocode"] != nil {
|
if result["regeocode"] != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user