|
@@ -84,7 +84,10 @@ public class File2OssService implements IFileFactory {
|
|
public byte[] downloadFile(DownloadSysFileDTO downloadSysFileDTO, ConfigSettingVO configSettingVO) {
|
|
public byte[] downloadFile(DownloadSysFileDTO downloadSysFileDTO, ConfigSettingVO configSettingVO) {
|
|
String filePath = downloadSysFileDTO.getFilePath();
|
|
String filePath = downloadSysFileDTO.getFilePath();
|
|
try {
|
|
try {
|
|
|
|
+ Long startTime =System.currentTimeMillis();
|
|
byte[] fileData = OssService.download(filePath, configSettingVO);
|
|
byte[] fileData = OssService.download(filePath, configSettingVO);
|
|
|
|
+ Long endTime =System.currentTimeMillis();
|
|
|
|
+ System.out.println("下载文件执行时间"+(endTime-startTime));
|
|
return fileData;
|
|
return fileData;
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
throw new XiaoShiException("下载错误");
|
|
throw new XiaoShiException("下载错误");
|