|
@@ -36,10 +36,6 @@ public class OssFileService extends AbstractFYunFileService {
|
|
|
} catch (Exception e) {
|
|
|
log.error("oss上传文件失败", e);
|
|
|
e.printStackTrace();
|
|
|
- } finally {
|
|
|
- if (!ObjectUtils.isEmpty(ossClient)) {
|
|
|
- ossClient.shutdown();
|
|
|
- }
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
@@ -107,10 +103,6 @@ public class OssFileService extends AbstractFYunFileService {
|
|
|
} catch (Exception e) {
|
|
|
log.error("OSS删除文件失败,key=" + remoteFilePath);
|
|
|
e.printStackTrace();
|
|
|
- } finally {
|
|
|
- if (!ObjectUtils.isEmpty(ossClient)) {
|
|
|
- ossClient.shutdown();
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
|