Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2022-08-25 15:13:27 +08:00

View File

@@ -159,9 +159,9 @@ type StoreSkuInfo struct {
//首页展示信息 //首页展示信息
type HomePageInfos struct { type HomePageInfos struct {
StoreInfo StoreInfo `json:"storeInfo"` StoreInfo StoreInfo `json:"storeInfo"`
StoreDeductionInfo []StoreDeductionInfo `json:"StoreDeductionInfo"` StoreDeductionInfo StoreDeductionInfo `json:"StoreDeductionInfo"`
StoreSkuInfo []StoreSkuInfo `json:"StoreSkuInfo"` StoreSkuInfo StoreSkuInfo `json:"StoreSkuInfo"`
} }
type JdStoreLevelExt struct { type JdStoreLevelExt struct {
@@ -5791,8 +5791,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
return nil, "获取热销商品失败", err return nil, "获取热销商品失败", err
} }
for _, j := range topSkusInfo { for _, j := range topSkusInfo {
//for _, i := range storeID {
//if i == j.StoreID {
storeSkuInfo = StoreSkuInfo{ storeSkuInfo = StoreSkuInfo{
StoreID: j.StoreID, StoreID: j.StoreID,
SkuID: j.SkuID, SkuID: j.SkuID,
@@ -5803,8 +5801,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
Price: j.Price, Price: j.Price,
Unit: j.Unit, Unit: j.Unit,
} }
//}
//}
StoreSkuInfos = append(StoreSkuInfos, storeSkuInfo) StoreSkuInfos = append(StoreSkuInfos, storeSkuInfo)
} }
globals.SugarLogger.Debug("StoreSkuInfos=================", StoreSkuInfos) globals.SugarLogger.Debug("StoreSkuInfos=================", StoreSkuInfos)
@@ -5822,6 +5818,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
} }
homePages = append(homePages, homePage) homePages = append(homePages, homePage)
} }
globals.SugarLogger.Debug("homePages====================", homePages)
} }
return homePages, "", nil return homePages, "", nil
} }