home
This commit is contained in:
@@ -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 {
|
||||||
@@ -5808,12 +5808,12 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
|
|||||||
homePage.StoreInfo = i
|
homePage.StoreInfo = i
|
||||||
for _, j := range storeDeductionInfos {
|
for _, j := range storeDeductionInfos {
|
||||||
if i.StoreID == j.StoreID {
|
if i.StoreID == j.StoreID {
|
||||||
homePage.StoreDeductionInfo = j
|
homePage.StoreDeductionInfo = append(homePage.StoreDeductionInfo, j)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for _, k := range StoreSkuInfos {
|
for _, k := range StoreSkuInfos {
|
||||||
if i.StoreID == k.StoreID {
|
if i.StoreID == k.StoreID {
|
||||||
homePage.StoreSkuInfo = k
|
homePage.StoreSkuInfo = append(homePage.StoreSkuInfo, k)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
homePages = append(homePages, homePage)
|
homePages = append(homePages, homePage)
|
||||||
|
|||||||
Reference in New Issue
Block a user