Explorar el Código

Merge branch 'wyp/0430-bugFix' of Server/long-article-recommend into master

wangyunpeng hace 2 meses
padre
commit
6e663ed4c5

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

@@ -2810,7 +2810,7 @@ public class DataDashboardService {
                 }
                 // 判断是否冷启视频内容池
                 String contentId = rootSourceIdItemList.get(0).getContentId();
-                List<LongArticleCrawlerVideo> crawlerVideoList = longArticleCrawlerVideoMap.get(contentId);
+                List<LongArticleCrawlerVideo> crawlerVideoList = longArticleCrawlerVideoMap.getOrDefault(contentId, new ArrayList<>());
                 List<String> videoOssPaths = crawlerVideoList.stream().map(LongArticleCrawlerVideo::getVideoOssPath)
                         .filter(StringUtils::hasText).collect(Collectors.toList());
                 List<PublishSingleVideoSource> singleVideoSources = new ArrayList<>();