Selaa lähdekoodia

场景计算完后,上传cache中的images和videos

dengsixing 4 vuotta sitten
vanhempi
commit
b06399abf1

+ 3 - 2
4dkankan-center-modeling/src/main/java/com/fdkankan/modeling/receiver/BuildSceneMQListener.java

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