xiewj 1 سال پیش
والد
کامیت
f2c62345b8
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/main/java/com/fdkankan/download/service/impl/LaserService.java

+ 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);
 
     }