home
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user