|
@@ -40,23 +40,8 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
String localCachesImagePath = dataSource + "/caches/images/";
|
|
|
String ossCachesImagePath = ossResultPath + "caches/images/";
|
|
|
//先清除旧的全景图
|
|
|
-// fYunFileServiceInterface.deleteFolder(ossCachesImagePath);
|
|
|
if(FileUtil.exist(localCachesImagePath)){
|
|
|
fYunFileServiceInterface.uploadFileByCommand(localCachesImagePath, ossCachesImagePath);
|
|
|
-// List<String> imagesList = FileUtil.listFileNames(localCachesImagePath);
|
|
|
-// if(CollUtil.isNotEmpty(imagesList)){
|
|
|
-// String ossVisionPath = String.format(UploadFilePath.IMG_VIEW_PATH, num) + "vision.txt";
|
|
|
-// String visionPath = String.format(ConstantFilePath.SCENE_DATA_PATH_V4, num) + "vision.txt";
|
|
|
-// fYunFileServiceInterface.downloadFile(ossVisionPath, visionPath);
|
|
|
-// List<String> panoramaImageList = SceneUtil.getPanoramaImageList(visionPath);
|
|
|
-// imagesList.stream().forEach(fileName -> {
|
|
|
-// if (panoramaImageList.contains(fileName)) {
|
|
|
-// String srcPath = localCachesImagePath + fileName;
|
|
|
-// String ossPath = ossCachesImagePath + fileName;
|
|
|
-// uploadMap.put(srcPath, ossPath);
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
}
|
|
|
|
|
|
//上传project.json
|
|
@@ -131,4 +116,15 @@ public class CommonServiceImpl implements ICommonService {
|
|
|
//开始上传
|
|
|
fYunFileServiceInterface.uploadMulFiles(uploadMap);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void initUserEditData(String num, Set<String> bizs, Map<String, Map<String ,Object>> params) {
|
|
|
+ if(StrUtil.isEmpty(num) || CollUtil.isEmpty(bizs)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ for (String biz : bizs) {
|
|
|
+ UserEditDataHandler handler = UserEditDataHandlerFactory.getHandler(biz);
|
|
|
+ handler.init(num, CollUtil.isEmpty(params) ? null : params.get(biz));
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|