- 修改方法参数类型,直接使用 StoreImg 列表替代 String 列表 - 移除不必要的视频列表构建和 URL 拼接逻辑 - 简化图片类型判断逻辑 - 优化代码结构,提高可读性和维护性
@@ -498,6 +498,7 @@ public class SecondGoodsServiceImpl extends ServiceImpl<SecondGoodsMapper, Secon
} else {
map.put("type", "image");
}
+ map.put("imgUrl", img.getImgUrl());
if (type == 1) {
map.put("videoUrl", img.getImgUrl());