From fd925ccedd2eef5427b49e7293352a8b11586dbc Mon Sep 17 00:00:00 2001 From: maojian <550076202@qq.com> Date: Fri, 28 Mar 2025 18:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=BC=80=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/bw/fileDownload/service/DownloadExecService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/bw/fileDownload/service/DownloadExecService.java b/src/main/java/com/bw/fileDownload/service/DownloadExecService.java index 46bf67e..ae86cc3 100644 --- a/src/main/java/com/bw/fileDownload/service/DownloadExecService.java +++ b/src/main/java/com/bw/fileDownload/service/DownloadExecService.java @@ -72,6 +72,7 @@ public class DownloadExecService { } String[] split = url.split("###"); String videoType = split[1]; + videoType = "." + videoType; String fileType = videoType; String m3u8Type = ".m3u8"; String youtubeTypeFr = "youtube"; @@ -503,6 +504,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL; @@ -604,6 +606,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL; @@ -739,6 +742,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL; @@ -818,6 +822,7 @@ public class DownloadExecService { String[] split = url.split("###"); String fileUrl = split[0]; String fileType = split[1]; + fileType = "." + fileType; try { if (!StringUtil.hasValue(fileUrl)) { downloadStatusCode = Constants.IMAGE_LIST_NULL;