Commit 3a0a4f59 authored by tangtuo's avatar tangtuo

优化下载文件的代码

parent e4bb0ac2
...@@ -142,6 +142,7 @@ public class OssUtil { ...@@ -142,6 +142,7 @@ public class OssUtil {
if (in != null) { if (in != null) {
in.close(); in.close();
} }
ossClient.shutdown();
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
throw GlobalException.newException(ResultCode.FILE_DOWNLOAD_ERROR, e.getMessage()); throw GlobalException.newException(ResultCode.FILE_DOWNLOAD_ERROR, e.getMessage());
......
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