Browse Source

压缩场景 5

wuweihao 3 years ago
parent
commit
706644eb17

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

@@ -57,7 +57,7 @@ public class OpsServiceImpl  implements OpsService {
         log.info("zip保存路径:{}", outPath);
         String cmd = CmdConstant.zip;
         cmd = cmd.replaceAll("@output", outPath);
-        cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath);
+        cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath + "/work");
         cmd = cmd.replaceAll("@code", ids);
 
         CmdUtils.callShell(cmd);
@@ -88,7 +88,7 @@ public class OpsServiceImpl  implements OpsService {
         log.info("zip保存路径:{}", outPath);
         String cmd = CmdConstant.zip;
         cmd = cmd.replaceAll("@output", outPath);
-        cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath + "/work");
+        cmd = cmd.replaceAll("@inDir", configConstant.serverBasePath );
         cmd = cmd.replaceAll("@code", dirCode);
 
         CmdUtils.callShell(cmd);