home
This commit is contained in:
@@ -159,9 +159,9 @@ type StoreSkuInfo struct {
|
||||
|
||||
//首页展示信息
|
||||
type HomePageInfos struct {
|
||||
StoreInfo StoreInfo `json:"storeInfo"`
|
||||
StoreDeductionInfo StoreDeductionInfo `json:"StoreDeductionInfo"`
|
||||
StoreSkuInfo StoreSkuInfo `json:"StoreSkuInfo"`
|
||||
StoreInfo StoreInfo `json:"storeInfo"`
|
||||
StoreDeductionInfo []StoreDeductionInfo `json:"StoreDeductionInfo"`
|
||||
StoreSkuInfo []StoreSkuInfo `json:"StoreSkuInfo"`
|
||||
}
|
||||
|
||||
type JdStoreLevelExt struct {
|
||||
@@ -5808,12 +5808,12 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
||||
homePage.StoreInfo = i
|
||||
for _, j := range storeDeductionInfos {
|
||||
if i.StoreID == j.StoreID {
|
||||
homePage.StoreDeductionInfo = j
|
||||
homePage.StoreDeductionInfo = append(homePage.StoreDeductionInfo, j)
|
||||
}
|
||||
}
|
||||
for _, k := range StoreSkuInfos {
|
||||
if i.StoreID == k.StoreID {
|
||||
homePage.StoreSkuInfo = k
|
||||
homePage.StoreSkuInfo = append(homePage.StoreSkuInfo, k)
|
||||
}
|
||||
}
|
||||
homePages = append(homePages, homePage)
|
||||
|
||||
Reference in New Issue
Block a user