This commit is contained in:
richboo111
2022-08-25 10:49:26 +08:00
parent e2361182a0
commit 95cd8433af

View File

@@ -5819,12 +5819,10 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
} }
multipleData = append(multipleData, data) multipleData = append(multipleData, data)
if len(multipleData) > 0 { if len(multipleData) > 0 {
for _, k := range multipleData { if i.StoreID == multipleData[0].StoreID {
if i.StoreID == k.StoreID { ans = HomePageInfos{
ans = HomePageInfos{ Info: i,
Info: i, Info2: multipleData,
Info2: multipleData,
}
} }
} }
} else { } else {