|
@@ -70,9 +70,7 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
private ICameraService cameraService;
|
|
|
|
|
|
@Override
|
|
|
- public Long uploadBuildResultData(String num, String dataSource, String version) {
|
|
|
-
|
|
|
- Long cacheSize = 0L;
|
|
|
+ public void uploadBuildResultData(String num, String dataSource, String version) {
|
|
|
|
|
|
Map<String, String> uploadMap = new HashMap<>();
|
|
|
|
|
@@ -86,7 +84,6 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
String ossCachesImagePath = ossResultPath + "caches/images/";
|
|
|
//先清除旧的全景图
|
|
|
if(FileUtil.exist(localCachesImagePath)){
|
|
|
- cacheSize += FileUtil.size(new File(localCachesImagePath));
|
|
|
fYunFileServiceInterface.uploadFileByCommand(localCachesImagePath, ossCachesImagePath);
|
|
|
}
|
|
|
|
|
@@ -125,25 +122,21 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
String localReconstruction = dataSource + "/caches/reconstruction/";
|
|
|
String ossReconstruction = ossResultPath + "caches/reconstruction/";
|
|
|
if(FileUtil.exist(localReconstruction)){
|
|
|
- cacheSize += FileUtil.size(new File(localReconstruction));
|
|
|
fYunFileServiceInterface.uploadFileByCommand(localReconstruction, ossReconstruction);
|
|
|
}
|
|
|
String localDepthmap = dataSource + "/caches/depthmap/";
|
|
|
String ossDepthmap = ossResultPath + "caches/depthmap/";
|
|
|
if(FileUtil.exist(localDepthmap)){
|
|
|
- cacheSize += FileUtil.size(new File(localDepthmap));
|
|
|
fYunFileServiceInterface.uploadFileByCommand(localDepthmap, ossDepthmap);
|
|
|
}
|
|
|
String localDepthmapAsc = dataSource + "/caches/depthmap_csc/";
|
|
|
String ossDepthmapAsc = ossResultPath + "caches/depthmap_csc/";
|
|
|
if(FileUtil.exist(localDepthmapAsc)){
|
|
|
- cacheSize += FileUtil.size(new File(localDepthmapAsc));
|
|
|
fYunFileServiceInterface.uploadFileByCommand(localDepthmapAsc, ossDepthmapAsc);
|
|
|
}
|
|
|
String localPanoramaJson = dataSource + "/caches/panorama.json";
|
|
|
String ossPanoramaJson = ossResultPath + "caches/panorama.json";
|
|
|
if(FileUtil.exist(localPanoramaJson)){
|
|
|
- cacheSize += FileUtil.size(new File(localPanoramaJson));
|
|
|
fYunFileServiceInterface.uploadFile(localPanoramaJson, ossPanoramaJson);
|
|
|
}
|
|
|
// String localLaserPly = dataSource + "/results/laserData/laser.ply";
|
|
@@ -154,28 +147,23 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
String localFloorGroupFixJson = dataSource + "/caches/floor_group_fix.json";
|
|
|
String ossFloorGroupFixJson = ossResultPath + "caches/floor_group_fix.json";
|
|
|
if(FileUtil.exist(localFloorGroupFixJson)){
|
|
|
- cacheSize += FileUtil.size(new File(localFloorGroupFixJson));
|
|
|
fYunFileServiceInterface.uploadFile(localFloorGroupFixJson, ossFloorGroupFixJson);
|
|
|
}
|
|
|
|
|
|
String localDepthmapVis = dataSource + "/caches/depthmap_vis";
|
|
|
String ossDepthmapVis = ossResultPath + "caches/depthmap_vis";
|
|
|
if(FileUtil.exist(localDepthmapVis)){
|
|
|
- cacheSize += FileUtil.size(new File(localDepthmapVis));
|
|
|
fYunFileServiceInterface.uploadFileByCommand(localDepthmapVis, ossDepthmapVis);
|
|
|
}
|
|
|
|
|
|
String localIntensity = dataSource + "/caches/intensity";
|
|
|
String ossIntensity = ossResultPath + "caches/intensity";
|
|
|
if(FileUtil.exist(localIntensity)){
|
|
|
- cacheSize += FileUtil.size(new File(localIntensity));
|
|
|
fYunFileServiceInterface.uploadFileByCommand(localIntensity, ossIntensity);
|
|
|
}
|
|
|
|
|
|
//开始上传
|
|
|
fYunFileServiceInterface.uploadMulFiles(uploadMap);
|
|
|
-
|
|
|
- return cacheSize;
|
|
|
}
|
|
|
|
|
|
@Override
|