This commit is contained in:
richboo111
2022-08-25 16:05:26 +08:00
parent 7fcd5e2114
commit 804c862816

View File

@@ -5732,8 +5732,8 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
storeDeductionInfos []StoreDeductionInfo
storeSkuInfo StoreSkuInfo
StoreSkuInfos []StoreSkuInfo
homePage HomePageInfos
homePages []HomePageInfos
//homePage HomePageInfos
homePages []HomePageInfos
)
locationList, err := common.GetStoreListByLocation(ctx, lng, lat, 20000, needWalkDistance, false, 0)
if err != nil {
@@ -5805,7 +5805,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
}
globals.SugarLogger.Debug("StoreSkuInfos=================", StoreSkuInfos)
for _, i := range storeInfos {
//homePage = make(HomePageInfos, 0)
homePage := HomePageInfos{}
i := i
homePage.StoreInfo = i
for _, j := range storeDeductionInfos {