Merge pull request 'by Robin at 20240530' (#519) from feat-IRONFANS-58-Robin into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/519
This commit is contained in:
chenhao 2024-05-30 15:24:11 +08:00
commit 906f8ca05c
2 changed files with 4 additions and 1 deletions

View File

@ -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"

View File

@ -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()