From f5e1c062ff2d71cd8426e3745247e13f63f9432a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 9 Oct 2024 16:37:13 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 6dddf25d9..62d58f277 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -6059,6 +6059,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis if scores, err := GetWeeklyStoreScore(v.ID, 0); err == nil && len(scores) > 0 { storeScore = scores[0].TotalScore } + baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.5:%d,%s", time.Now().Sub(beginTime)/time.Millisecond, v.ID) storeInfo := StoreInfo{ StoreID: v.ID, @@ -6080,6 +6081,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis if err != nil { return nil, "获取门店减免策略失败", err } + baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.6:%d", time.Now().Sub(beginTime)/time.Millisecond) for _, k := range storePolicy { if k.StoreID == v.ID { storeDeductionInfo = StoreDeductionInfo{ @@ -6091,6 +6093,7 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis storeDeductionInfos = append(storeDeductionInfos, storeDeductionInfo) } //} + baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------3.7:%d", time.Now().Sub(beginTime)/time.Millisecond) } baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------4:%d", time.Now().Sub(beginTime)/time.Millisecond) @@ -6117,7 +6120,6 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis } homePages = append(homePages, homePage) } - baseapi.SugarLogger.Infof("GetTopSkusByStoreIDs usedMilliSecond------5:%d", time.Now().Sub(beginTime)/time.Millisecond) return homePages, "", nil }