فهرست منبع

更新打包数据 1

wuweihao 3 سال پیش
والد
کامیت
0678473b61
1فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 6 2
      720yun_local_manage/gis_pano/src/main/java/com/gis/cms/service/impl/OpsServiceImpl.java

+ 6 - 2
720yun_local_manage/gis_pano/src/main/java/com/gis/cms/service/impl/OpsServiceImpl.java

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