aa
This commit is contained in:
@@ -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) {
|
func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) {
|
||||||
v := batchItemList[0].(*dao.PageShopWithPlaceName)
|
v := batchItemList[0].(*dao.PageShopWithPlaceName)
|
||||||
if v.Address != "" && v.CityName != "" {
|
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
|
lng, lat := result.Lng, result.Lat
|
||||||
v.DistrictName = result.AdName
|
v.DistrictName = result.AdName
|
||||||
v.Lng, v.Lat = lng, lat
|
v.Lng, v.Lat = lng, lat
|
||||||
|
|||||||
Reference in New Issue
Block a user