|
@@ -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())) {
|