home
This commit is contained in:
@@ -5745,6 +5745,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
tmp1s []Info1
|
tmp1s []Info1
|
||||||
multipleData []Info2
|
multipleData []Info2
|
||||||
data Info2
|
data Info2
|
||||||
|
ans HomePageInfos
|
||||||
res []HomePageInfos
|
res []HomePageInfos
|
||||||
)
|
)
|
||||||
locationList, err := common.GetStoreListByLocation(ctx, lng, lat, 20000, needWalkDistance, false, 0)
|
locationList, err := common.GetStoreListByLocation(ctx, lng, lat, 20000, needWalkDistance, false, 0)
|
||||||
@@ -5815,10 +5816,15 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
multipleData = append(multipleData, data)
|
multipleData = append(multipleData, data)
|
||||||
globals.SugarLogger.Debug("multipleData===============", multipleData)
|
if len(multipleData) > 0 {
|
||||||
ans := HomePageInfos{
|
ans = HomePageInfos{
|
||||||
Info: i,
|
Info: i,
|
||||||
Info2: multipleData,
|
Info2: multipleData,
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
ans = HomePageInfos{
|
||||||
|
Info: i,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
res = append(res, ans)
|
res = append(res, ans)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user