Преглед на файлове

长文增加新封面实验

xueyiming преди 7 месеца
родител
ревизия
d39583d6f5
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CardServiceImpl.java

+ 2 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/service/local/impl/CardServiceImpl.java

@@ -204,7 +204,8 @@ public class CardServiceImpl implements CardService {
                     // 查询是否存在新封面
                     if (!CollectionUtils.isEmpty(newVideoCovers)) {
                         NewVideoCover newVideoCover = newVideoCovers.get(0);
-                        card.setVideoCover(newVideoCover.getCoverOssPath());
+                        String cover = " https://rescdn.yishihui.com/" + newVideoCover.getCoverOssPath();
+                        card.setVideoCover(cover);
                         card.setNewVideoCoverId(newVideoCover.getId());
                     }
                 }