This commit is contained in:
邹宗楠
2024-10-10 08:57:55 +08:00
parent 46e8b26ef8
commit 64064afc0e
2 changed files with 4 additions and 4 deletions

View File

@@ -6093,10 +6093,8 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
for _, i := range storeInfos {
homePage := HomePageInfos{}
i := i
homePage.StoreInfo = i
for _, j := range storeDeductionInfos {
j := j
if i.StoreID == j.StoreID {
homePage.StoreDeductionInfo = append(homePage.StoreDeductionInfo, j)
} else {
@@ -6104,7 +6102,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
}
}
for _, k := range StoreSkuInfos {
k := k
if i.StoreID == k.StoreID {
homePage.StoreSkuInfo = append(homePage.StoreSkuInfo, k)
} else {
@@ -6113,7 +6110,8 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
}
homePages = append(homePages, homePage)
}
// todo 明天测试西南交大店首页没商品
globals.SugarLogger.Debugf("----------homePages := %s", utils.Format4Output(homePages, false))
return homePages, "", nil
}