From a6e3a3ee12b7c78f5034d50b65e1d4ce7dbd8c49 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 30 May 2024 15:23:40 +0800 Subject: [PATCH] by Robin at 20240530 --- api/consts/consts.go | 3 +++ app/mix/service/streamer_recomm_service.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/consts/consts.go b/api/consts/consts.go index 73dcf157..4e00cae2 100644 --- a/api/consts/consts.go +++ b/api/consts/consts.go @@ -55,6 +55,7 @@ const ( RestrictedVisitorMomentKey = "restricted_visitor_moment" AppConfigReflectKey = "app_config_reflect" ZoneVIPConfigKey = "zone_vip_config" + StreamerScoreFormulaKey = "streamer_score_formula" ) // del_flag @@ -87,6 +88,8 @@ const ( const PackageRootPath = "/app/wishpal-ironfan" +//const OfflinePackageRootPath = "C:/Users/PC/Desktop/service" + const OfflinePackageRootPath = "/app/wishpal-ironfan-offline" const MainConfigPath = PackageRootPath + "/etc/mix/mix-test.yaml" diff --git a/app/mix/service/streamer_recomm_service.go b/app/mix/service/streamer_recomm_service.go index f57110aa..042758f9 100644 --- a/app/mix/service/streamer_recomm_service.go +++ b/app/mix/service/streamer_recomm_service.go @@ -49,7 +49,7 @@ func (s *StreamerRecommService) RunBatch(nt int64) error { // 获取计算公式 s.formula = &apollostruct.StreamerScoreFormulaCfg{} - err := apollo.GetJson(consts.ReferentialZoneMomentKey, s.formula, apollo.ApolloOpts().SetNamespace("application")) + err := apollo.GetJson(consts.StreamerScoreFormulaKey, s.formula, apollo.ApolloOpts().SetNamespace("application")) if err != nil { logger.Error("Apollo read failed : %v", err) s.clear()