Browse Source

后缀问题处理

master
maojian 3 months ago
parent
commit
fd925ccedd
  1. 5
      src/main/java/com/bw/fileDownload/service/DownloadExecService.java

5
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;

Loading…
Cancel
Save