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