Browse Source

压缩场景 1

wuweihao 3 years ago
parent
commit
0d8e224462

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

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