京东商城建店把东莞算进去

This commit is contained in:
苏尹岚
2020-07-02 10:17:29 +08:00
parent acc17e2509
commit edfaded8d7
2 changed files with 7 additions and 6 deletions

View File

@@ -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{

View File

@@ -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 {