|
@@ -156,10 +156,10 @@ public class OpsServiceImpl implements OpsService {
|
|
|
copyScene(workId, entity.getSceneCodes());
|
|
|
|
|
|
// 合并tour.xml
|
|
|
- mergeTour(workId, entity.getSceneCodes());
|
|
|
+// mergeTour(workId, entity.getSceneCodes());
|
|
|
|
|
|
// 压缩
|
|
|
- zipWork(workId);
|
|
|
+// zipWork(workId);
|
|
|
String filePath = "/download/" + workId + ".zip";
|
|
|
log.info("zip地址:{}", configConstant.serverBasePath + filePath);
|
|
|
return Result.success(filePath);
|
|
@@ -195,6 +195,10 @@ public class OpsServiceImpl implements OpsService {
|
|
|
// inPath = configConstant.serverBasePath + "/pano/" + sceneCode + "/vtour/panos/" + sceneCode + ".tiles";
|
|
|
inPath = configConstant.serverBasePath + "/pano/" + sceneCode + "/vtour/panos";
|
|
|
outPath = outBasePath + "/" + sceneCode;
|
|
|
+
|
|
|
+ // 创建目录
|
|
|
+ FileUtil.mkdir(outPath);
|
|
|
+
|
|
|
// 复制全景图
|
|
|
String cmd = StrUtil.format("cp -r {} {} ", inPath, outPath);
|
|
|
CmdUtils.callCmd(cmd);
|