From 20718f4e9d897e4b2855ef282a311bc04e1e6b74 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Tue, 11 May 2021 16:14:07 +0800 Subject: [PATCH] aa --- business/model/dao/page_store.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/business/model/dao/page_store.go b/business/model/dao/page_store.go index 008818920..accbe3a6a 100644 --- a/business/model/dao/page_store.go +++ b/business/model/dao/page_store.go @@ -2,11 +2,9 @@ package dao import ( "fmt" - "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/jxutils" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/globals/api" - "strings" ) type PageShopWithPlaceName struct { @@ -212,9 +210,8 @@ func QueryPageStores2(db *DaoDB, pageSize, offset int, keyword string, vendorSto for _, v := range shopList { if v.Address != "" && v.CityName != "" { result, _ := api.AutonaviAPI.GetCoordinateFromAddressByPageAll(v.Address, v.CityCode) - coords := strings.Split(result.Location, ",") - lng, lat := utils.Str2Float64(coords[0]), utils.Str2Float64(coords[1]) - v.DistrictName = result.Adname + lng, lat := result.Lng, result.Lat + v.DistrictName = result.AdName v.Lng, v.Lat = lng, lat if lng1 > 0 { if !(lng >= lng1 && lat >= lat1 && lng <= lng2 && lat <= lat2) {