Sfoglia il codice sorgente

修复球幕视频xml

dsx 2 anni fa
parent
commit
999bbeea8b

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

@@ -99,8 +99,14 @@ public class RepairVideosHandler {
                     log.info("upPath=" + upPath);
                     log.info("targetUpPath=" + targetUpPath);
 //                fYunFileService.copyFileBetweenBucket(fYunFileConfig.getBucket(), upPath, fYunFileConfig.getBucket(), targetUpPath);
-                    fYunFileService.uploadFile(fYunFileService.getFileContent(upPath1).getBytes(StandardCharsets.UTF_8), targetUpPath1);
-                    fYunFileService.uploadFile(fYunFileService.getFileContent(upPath2).getBytes(StandardCharsets.UTF_8), targetUpPath2);
+//                    fYunFileService.uploadFile(fYunFileService.getFileContent(upPath1).getBytes(StandardCharsets.UTF_8), targetUpPath1);
+//                    fYunFileService.uploadFile(fYunFileService.getFileContent(upPath2).getBytes(StandardCharsets.UTF_8), targetUpPath2);
+
+                    fYunFileService.downloadFile(upPath1, String.format(ConstantFilePath.DATABUFFER_FORMAT, pro.getNum()).concat("Up.xml"));
+                    fYunFileService.downloadFile(upPath2, String.format(ConstantFilePath.DATABUFFER_FORMAT, pro.getNum()).concat("Up2.xml"));
+                    fYunFileService.uploadFile(String.format(ConstantFilePath.DATABUFFER_FORMAT, pro.getNum()).concat("Up.xml"), targetUpPath1);
+                    fYunFileService.uploadFile(String.format(ConstantFilePath.DATABUFFER_FORMAT, pro.getNum()).concat("Up2.xml"), targetUpPath2);
+
                 } else {
                     //如果home已被删除,则找相同相机下的场景,有则取回
                     if (Objects.isNull(pro.getCameraId())) {