소스 검색

测试激光

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