Explorar el Código

内容晋升抓取计划创建修改

wangyunpeng hace 7 meses
padre
commit
64a6bd382b

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/ArticlePromotionService.java

@@ -119,6 +119,7 @@ public class ArticlePromotionService {
             return;
         }
         try {
+            String level = pos.equals("【1】") ? contentPoolType.get(0) : contentPoolType.get(1);
             String produceId = produceConfig.get(accountNickName).get(pos).get(way).trim();
             List<ProduceContentListItemVO> contentList = getProduceContentList(accountNickName, pos, way);
             // 获取已访问的标题和URL
@@ -144,7 +145,6 @@ public class ArticlePromotionService {
                 filterUrlList.add(url);
                 // 调用爬虫 detail 接口并保存数据
                 WxContentDetailResponse detail = getArticleDetail(url);
-                String level = pos.equals("【1】") ? contentPoolType.get(0) : contentPoolType.get(1);
                 if (detail != null && StringUtils.hasText(detail.getChannelContentId())) {
                     saveArticlePoolPromotionSource(detail.getChannelContentId(), wxSn, title, level);
                 } else {