|
@@ -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;
|
|
|
}
|