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