Sfoglia il codice sorgente

Merge branch '20250609-wyp-fix' of Server/growth-manager into master

wangyunpeng 1 mese fa
parent
commit
6f8ae46612

+ 1 - 1
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/ContentPlatformPlanService.java

@@ -23,7 +23,7 @@ public interface ContentPlatformPlanService {
         if (StringUtils.hasText(video.getCustomCover())) {
             return video.getCustomCover();
         }
-        return video.getCover();
+        return video.getCover().substring(0, video.getCover().indexOf("?"));
     }
 
     Page<GzhPlanItemVO> gzhPlanList(GzhPlanListParam param);

+ 2 - 1
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/impl/ContentPlatformPlanServiceImpl.java

@@ -323,9 +323,10 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
             }
             String existsCover = dataList.get(0).getCoverUrl();
             String coverSuffix = existsCover.substring(existsCover.indexOf("?"));
+            String cover = video.getCover().substring(0, existsCover.indexOf("?"));
             cgiReplyBucketDataMapperExt.updateBucketDataTitleCoverByGhId(ghId, video.getVideoId(),
                     StringUtils.hasText(video.getCustomTitle()) ? video.getCustomTitle() : video.getTitle(),
-                    StringUtils.hasText(video.getCustomCover()) ? video.getCustomCover() : video.getCover() + coverSuffix);
+                    StringUtils.hasText(video.getCustomCover()) ? video.getCustomCover() : cover + coverSuffix);
         }
     }