Procházet zdrojové kódy

url晋级暂时取消

wangyunpeng před 4 týdny
rodič
revize
0eaba39afa

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

@@ -53,9 +53,7 @@ import org.springframework.util.StringUtils;
 
 import java.net.URLDecoder;
 import java.util.*;
-import java.util.function.Function;
 import java.util.stream.Collectors;
-import java.util.stream.Stream;
 
 @Service
 @Slf4j
@@ -291,13 +289,13 @@ public class ArticlePromotionService {
                 if (StringUtils.hasText(publishContentId)) {
                     publishContentIds.add(publishContentId);
                     saveArticlePoolPromotionSource(Md5Util.encoderByMd5(publishContentId), wxSn, title, level);
-                } else {
-                    filterUrlList.add(url);
-                    // 调用爬虫 detail 接口并保存数据
-                    WxContentDetailResponse detail = getArticleDetail(url);
-                    if (detail != null && StringUtils.hasText(detail.getChannelContentId())) {
-                        saveArticlePoolPromotionSource(detail.getChannelContentId(), wxSn, title, level);
-                    }
+//                } else {
+//                    filterUrlList.add(url);
+//                    // 调用爬虫 detail 接口并保存数据
+//                    WxContentDetailResponse detail = getArticleDetail(url);
+//                    if (detail != null && StringUtils.hasText(detail.getChannelContentId())) {
+//                        saveArticlePoolPromotionSource(detail.getChannelContentId(), wxSn, title, level);
+//                    }
                 }
             }
             if (CollectionUtils.isNotEmpty(filterUrlList)) {