home
This commit is contained in:
@@ -5745,6 +5745,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
||||
tmp1s []Info1
|
||||
multipleData []Info2
|
||||
data Info2
|
||||
ans HomePageInfos
|
||||
res []HomePageInfos
|
||||
)
|
||||
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)
|
||||
globals.SugarLogger.Debug("multipleData===============", multipleData)
|
||||
ans := HomePageInfos{
|
||||
Info: i,
|
||||
Info2: multipleData,
|
||||
if len(multipleData) > 0 {
|
||||
ans = HomePageInfos{
|
||||
Info: i,
|
||||
Info2: multipleData,
|
||||
}
|
||||
} else {
|
||||
ans = HomePageInfos{
|
||||
Info: i,
|
||||
}
|
||||
}
|
||||
res = append(res, ans)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user