From 93212f2cee7c5b3819ad59dc1bb465e02b2dc8cd Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 25 Aug 2022 15:03:56 +0800 Subject: [PATCH 1/3] home --- business/jxstore/cms/store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 7ce408830..ff25d8e62 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -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 { From 243527bac396a5efd3b37024442761ba6ca77071 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 25 Aug 2022 15:09:45 +0800 Subject: [PATCH 2/3] home --- business/jxstore/cms/store.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index ff25d8e62..d1ed572d3 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -5791,8 +5791,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis return nil, "获取热销商品失败", err } for _, j := range topSkusInfo { - //for _, i := range storeID { - //if i == j.StoreID { storeSkuInfo = StoreSkuInfo{ StoreID: j.StoreID, SkuID: j.SkuID, @@ -5803,8 +5801,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis Price: j.Price, Unit: j.Unit, } - //} - //} StoreSkuInfos = append(StoreSkuInfos, storeSkuInfo) } globals.SugarLogger.Debug("StoreSkuInfos=================", StoreSkuInfos) @@ -5820,8 +5816,9 @@ 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 } From b2241bf9fec81de929e958dfe66045a179d7ef03 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 25 Aug 2022 15:11:34 +0800 Subject: [PATCH 3/3] home --- business/jxstore/cms/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index d1ed572d3..0a95a97f2 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -5816,8 +5816,8 @@ 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