From 9c6c57d3a81571e10a6a46446e18175067f4a8df Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 14 八月 2025 14:49:54 +0800
Subject: [PATCH] 视频评论删除

---
 framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java b/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java
index 9e8fde1..d39a7a2 100644
--- a/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java
+++ b/framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java
@@ -743,8 +743,12 @@
                 }
                 if (VideoContentTypeEnum.VIDEO.getValue().equals(v.getVideoContentType())) {
                     v.setVideoUrl(cosUtil.getPreviewUrl(v.getVideoFileKey()));
+
                     String coverFileKey = v.getCoverFileKey();
-                    v.setCoverUrl(cosUtil.getPreviewUrl(coverFileKey));
+                    if (StringUtils.isNotBlank(coverFileKey) && !coverFileKey.contains("http")) {
+                        v.setCoverUrl(cosUtil.getPreviewUrl(coverFileKey));
+                    }
+
                 } else if (VideoContentTypeEnum.IMG.getValue().equals(v.getVideoContentType()) && StringUtils.isNotBlank(v.getVideoImgs())) {
                     v.setImgs(JSON.parseArray(v.getVideoImgs(), String.class).stream().map(fileKey -> cosUtil.getPreviewUrl(fileKey)).collect(Collectors.toList()));
                 }

--
Gitblit v1.8.0