This commit is contained in:
suyl
2021-05-11 16:45:39 +08:00
parent 1f8bf71865
commit f4cde621a2

View File

@@ -4329,7 +4329,7 @@ func QueryPageStores2(db *dao.DaoDB, pageSize, offset int, keyword string, vendo
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
v := batchItemList[0].(*dao.PageShopWithPlaceName)
if v.Address != "" && v.CityName != "" {
result, _ := api.AutonaviAPI.GetCoordinateFromAddressByPageAll(v.Address, v.CityCode)
result, _ := api.AutonaviAPI.GetCoordinateFromAddressAll(v.Address, v.CityName)
lng, lat := result.Lng, result.Lat
v.DistrictName = result.AdName
v.Lng, v.Lat = lng, lat