From 951bad012ec3ca892a11a5ce06346418d5c7c63a Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 24 Aug 2022 18:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=8E=A8=E8=8D=90=E5=95=86?= =?UTF-8?q?=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index b1e7bcccb..42714a3c4 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -8,7 +8,6 @@ import ( "fmt" "git.rosy.net.cn/jx-callback/business/jxstore/common" "git.rosy.net.cn/jx-callback/business/jxstore/event" - "git.rosy.net.cn/jx-callback/business/jxstore/misc" "io" "math" "mime/multipart" @@ -5759,10 +5758,10 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis return nil, "获取门店减免策略失败", err } //获取店铺每周评分 - weeklyScore, err := misc.GetWeeklyStoreScore(v.ID, -1) - if err != nil { - return nil, "获取店铺每周评分失败", err - } + //weeklyScore, err := misc.GetWeeklyStoreScore(v.ID, -1) + //if err != nil { + // return nil, "获取店铺每周评分失败", err + //} for _, k := range storePolicy { if k.StoreID == v.ID { tmp1 := Info1{ @@ -5779,7 +5778,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis BrandLogo: brandInfos.Logo, DeliveryFeeDeductionSill: storePolicy[0].DeliveryFeeDeductionSill, DeliveryFeeDeductionFee: storePolicy[0].DeliveryFeeDeductionFee, - WeeklyScore: weeklyScore[0].TotalScore, + //WeeklyScore: weeklyScore[0].TotalScore, } tmp1s = append(tmp1s, tmp1) } @@ -5807,14 +5806,14 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis BrandLogo: i.BrandLogo, DeliveryFeeDeductionSill: i.DeliveryFeeDeductionSill, DeliveryFeeDeductionFee: i.DeliveryFeeDeductionFee, - WeeklyScore: i.WeeklyScore, - SkuID: j.SkuID, - SkuName: j.Name, - SkuStatus: j.Status, - BestSeller: j.BestSeller, - Img: j.Img, - Price: j.Price, - Unit: j.Unit, + //WeeklyScore: i.WeeklyScore, + SkuID: j.SkuID, + SkuName: j.Name, + SkuStatus: j.Status, + BestSeller: j.BestSeller, + Img: j.Img, + Price: j.Price, + Unit: j.Unit, } multipleData = append(multipleData, data) }