소스 검색

长文小程序匹配优化

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

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

@@ -106,14 +106,14 @@ public class VideoDownloader {
         String index = String.format("%s-%s-%s", platform, videoId, UUID.randomUUID());
         String md5Hash = DigestUtils.md5Hex(index);
         String fileName = String.format("%s.mp4", md5Hash);
-        return String.join(File.separator, System.getProperty("user.dir"), fileName); // 返回文件路径和封面路径
+        return String.join(File.separator, "/Users/shimeng/Desktop/download", fileName); // 返回文件路径和封面路径
     }
 
     private static String generateCoverPath(String platform, String videoId) {
         String index = String.format("%s-%s-%s", platform, videoId, UUID.randomUUID());
         String md5Hash = DigestUtils.md5Hex(index);
         String coverName = String.format("%s.png", md5Hash);
-        return String.join(File.separator, System.getProperty("user.dir"), coverName); // 返回文件路径和封面路径
+        return String.join(File.separator, "/Users/shimeng/Desktop/download", coverName); // 返回文件路径和封面路径
     }
 
 }