This commit is contained in:
gazebo
2019-11-27 17:32:38 +08:00
parent 47803c64e4
commit d6e172f6f9

View File

@@ -92,7 +92,7 @@ func (c *NetSpiderController) QueryPageStores() {
var shopList []*dao.PageShopWithPlaceName
pagedInfo.TotalCount = 0
if len(shopList2) > 0 {
for _, v := range shopList {
for _, v := range shopList2 {
v.Distance = int(jxutils.EarthDistance(v.Lng, v.Lat, lng, lat) * 1000)
if v.Distance <= params.Radius {
shopList = append(shopList, v)