|
@@ -407,13 +407,15 @@ public class BuildSceneMQListener implements RocketMQListener<String> {
|
|
|
|
|
|
String sceneNumPAth = String.format("scene/%s", num);
|
|
String sceneNumPAth = String.format("scene/%s", num);
|
|
|
|
|
|
- List<String> iamgesList = FileUtil.getFileList(path + "caches/images");
|
|
|
|
- if(CollUtil.isNotEmpty(iamgesList)){
|
|
|
|
- iamgesList.stream().forEach(str -> map.put(str, str.replace(path, sceneNumPAth)));
|
|
|
|
|
|
+ List<String> imagesList = FileUtil.getFileList(path + "caches/images");
|
|
|
|
+ if(CollUtil.isNotEmpty(imagesList)){
|
|
|
|
+ log.info("上传的caches/images文件列表:{}", imagesList.toString());
|
|
|
|
+ imagesList.stream().forEach(str -> map.put(str, str.replace(path, sceneNumPAth)));
|
|
}
|
|
}
|
|
|
|
|
|
List<String> videosList = FileUtil.getFileList(path + "caches/videos");
|
|
List<String> videosList = FileUtil.getFileList(path + "caches/videos");
|
|
if(CollUtil.isNotEmpty(videosList)){
|
|
if(CollUtil.isNotEmpty(videosList)){
|
|
|
|
+ log.info("上传的caches/videos文件列表:{}", videosList.toString());
|
|
videosList.stream().forEach(str -> map.put(str, str.replace(path, sceneNumPAth)));
|
|
videosList.stream().forEach(str -> map.put(str, str.replace(path, sceneNumPAth)));
|
|
}
|
|
}
|
|
|
|
|