This commit is contained in:
richboo111
2022-08-25 15:25:59 +08:00
parent 36c67d2260
commit 044b311515

View File

@@ -5805,12 +5805,14 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
}
globals.SugarLogger.Debug("StoreSkuInfos=================", StoreSkuInfos)
for _, i := range storeInfos {
homePage.StoreInfo = i
for _, j := range storeDeductionInfos {
if i.StoreID == j.StoreID {
homePage.StoreDeductionInfo = j
}
for _, k := range StoreSkuInfos {
homePage = HomePageInfos{
StoreInfo: i,
StoreDeductionInfo: j,
StoreSkuInfo: k,
if i.StoreID == k.StoreID {
homePage.StoreSkuInfo = k
}
}
}