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

Merge branch '20250925-wyp-uploadVideo' into test

wangyunpeng преди 1 седмица
родител
ревизия
f3c5972f31
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/ContentPlatformPlanService.java

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

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