Sfoglia il codice sorgente

修复球幕视频xml

dsx 2 anni fa
parent
commit
6cc41b8514

+ 7 - 2
src/main/java/com/fdkankan/job/job/RepairVideosHandler.java

@@ -37,6 +37,9 @@ import java.util.*;
 @Component
 public class RepairVideosHandler {
 
+    @Value("${fyun.bucket}")
+    private String bucket;
+
     @Autowired
     private ISceneProService sceneProService;
     @Autowired
@@ -140,8 +143,10 @@ public class RepairVideosHandler {
                             log.info("upPath2:{}", upPath2);
                             log.info("targetUpPath1:{}", targetUpPath1);
                             log.info("targetUpPath2:{}", targetUpPath2);
-                            fYunFileService.uploadFile(fYunFileService.getFileContent(upPath1).getBytes(), targetUpPath1);
-                            fYunFileService.uploadFile(fYunFileService.getFileContent(upPath2).getBytes(), targetUpPath2);
+                            fYunFileService.copyFileBetweenBucket(bucket, upPath1, bucket, targetUpPath1);
+                            fYunFileService.copyFileBetweenBucket(bucket, upPath2, bucket, targetUpPath2);
+//                            fYunFileService.uploadFile(fYunFileService.getFileContent(upPath1).getBytes(), targetUpPath1);
+//                            fYunFileService.uploadFile(fYunFileService.getFileContent(upPath2).getBytes(), targetUpPath2);
                             log.info("场景:{}在场景{}中找到,路径为:{}", pro.getNum(), scenePro.getNum(), upPath);
                             break;
                         }