|
@@ -287,7 +287,9 @@ public class CompatibleOldFileServiceImpl implements CompatibleOldFileService {
|
|
|
return;
|
|
|
}
|
|
|
// 3.通过文件流的方式下载文件
|
|
|
- IoUtil.copy(service.download(fileInfo.getFileBucket(),fileInfo.getFilePath(),response,fileInfo.getFileName()),response.getOutputStream());
|
|
|
+ InputStream inputStream = service.download(fileInfo.getFileBucket(), fileInfo.getFilePath(), response, fileInfo.getFileName());
|
|
|
+ IoUtil.copy(inputStream,response.getOutputStream());
|
|
|
+ IoUtil.close(inputStream);
|
|
|
// 4.2021年12月22日12:00:21,先申请下载地址,然后通过重定向的方式直接请求文件服务器进行下载
|
|
|
// String fetchUrl = service.fetchUrl(fileInfo.getFileBucket(), fileInfo.getFilePath());
|
|
|
// if (StrUtil.isBlank(fetchUrl)){
|