xiewj hai 1 ano
pai
achega
f2c62345b8

+ 3 - 1
src/main/java/com/fdkankan/download/service/impl/LaserService.java

@@ -215,7 +215,9 @@ public class LaserService  implements ILaserService {
         zipCmd = zipCmd.replace("@target", moveZipPath);
         zipCmd = zipCmd.replace("@path", path);
         CmdUtils.callLineSh(zipCmd);
-
+        if(!FileUtil.exist(moveZipPath)){
+            throw new RuntimeException("打包失败");
+        }
         return FileUtil.file(moveZipPath);
 
     }