This commit is contained in:
richboo111
2022-08-25 16:00:20 +08:00
parent 39d3969bc7
commit 7fcd5e2114

View File

@@ -5805,15 +5805,23 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
}
globals.SugarLogger.Debug("StoreSkuInfos=================", StoreSkuInfos)
for _, i := range storeInfos {
//homePage = make(HomePageInfos, 0)
i := i
homePage.StoreInfo = i
for _, j := range storeDeductionInfos {
j := j
if i.StoreID == j.StoreID {
homePage.StoreDeductionInfo = append(homePage.StoreDeductionInfo, j)
} else {
continue
}
}
for _, k := range StoreSkuInfos {
k := k
if i.StoreID == k.StoreID {
homePage.StoreSkuInfo = append(homePage.StoreSkuInfo, k)
} else {
continue
}
}
homePages = append(homePages, homePage)