From e2e015e02fb67ef7c348fbcb2152a34ccb34004d Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 28 七月 2025 15:19:09 +0800 Subject: [PATCH] 活动定时任务优化 --- framework/src/main/java/cn/lili/modules/lmk/service/impl/VideoServiceImpl.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 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 04a8b16..77b88bc 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 @@ -427,6 +427,12 @@ page.getRecords().forEach(v -> { v.setTagList(tagMap.get(v.getId())); v.setCoverUrl(cosUtil.getPreviewUrl(v.getCoverUrl())); + v.getGoodsList().forEach(goods ->{ + if (StringUtils.isNotBlank(goods.getThumbnail())&&!goods.getThumbnail().contains("http")) { + goods.setThumbnail(cosUtil.getPreviewUrl(goods.getThumbnail())); + } + + }); }); } return Result.ok().data(page.getRecords()).total(page.getTotal()); -- Gitblit v1.8.0