Prechádzať zdrojové kódy

ViewCountRateStrategy 过滤历史天数配置

wangyunpeng 9 hodín pred
rodič
commit
bf28a17fb9

+ 2 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/score/strategy/ViewCountRateStrategy.java

@@ -1,5 +1,6 @@
 package com.tzld.longarticle.recommend.server.service.recommend.score.strategy;
 
+import com.ctrip.framework.apollo.spring.annotation.ApolloJsonValue;
 import com.tzld.longarticle.recommend.server.model.dto.Content;
 import com.tzld.longarticle.recommend.server.model.dto.ContentHisPublishArticle;
 import com.tzld.longarticle.recommend.server.model.entity.crawler.AccountAvgInfo;
@@ -32,7 +33,7 @@ public class ViewCountRateStrategy implements ScoreStrategy {
     @Autowired
     AccountAvgInfoRepository accountAvgInfoRepository;
 
-    @Value("${view.count.rate.account.his.filter.days:{}}")
+    @ApolloJsonValue("${view.count.rate.account.his.filter.days:{}}")
     private Map<String, Integer> accountHisFilterDaysConfig;
 
     @Override