소스 검색

增加文件下载放卡死

xueyiming 7 달 전
부모
커밋
2ae891d27e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/other/VideoDownloader.java

+ 1 - 1
long-article-server/src/main/java/com/tzld/piaoquan/longarticle/utils/other/VideoDownloader.java

@@ -115,7 +115,7 @@ public class VideoDownloader {
                         }
                     }
                 }
-                if (file.length() != expectedSize) {
+                if (file.length() == expectedSize) {
                     return 0;
                 }
             }