Commit 89cdde35 authored by yanxia54's avatar yanxia54

异常信息优化

parent 86500002
...@@ -179,17 +179,11 @@ public class HlsDownloader { ...@@ -179,17 +179,11 @@ public class HlsDownloader {
} }
// todo: 输出文件,需要封装成函数 // todo: 输出文件,需要封装成函数
String fileOutPath = rootPath + File.separator + fileName; String fileOutPath = rootPath + File.separator + fileName;
// 订单输出文件流 // 订单输出文件流
try (FileOutputStream fileOutputStream = new FileOutputStream(new File(fileOutPath))) { try (FileOutputStream fileOutputStream = new FileOutputStream(new File(fileOutPath))) {
// 按照顺序遍历文件缓存 // 获取第一个 ts 文件
int size = keyFileMap.size(); File file = new File(keyFileMap.get(0));
for (int i = 0; i < size; i++) { if (file.exists()) {
// 获取当前的 ts 文件
File file = new File(keyFileMap.get(i));
if (!file.exists()) {
continue;
}
// 读取文件 // 读取文件
FileInputStream fis = new FileInputStream(file); FileInputStream fis = new FileInputStream(file);
// 定义文件缓存 // 定义文件缓存
...@@ -203,7 +197,6 @@ public class HlsDownloader { ...@@ -203,7 +197,6 @@ public class HlsDownloader {
} }
} }
} }
return fileName; return fileName;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment