Commit 0a9ccc53 authored by terrfly's avatar terrfly
Browse files

OSS证书下载到本地: 当文件夹不存在时, 需要创建。 避免下载提示文件夹不存在导致业务异常。

parent b31372ef
...@@ -49,6 +49,11 @@ public class ChannelCertConfigKitBean { ...@@ -49,6 +49,11 @@ public class ChannelCertConfigKitBean {
return certFile; return certFile;
} }
// 当文件夹不存在时, 需要创建。
if(!certFile.getParentFile().exists()){
certFile.getParentFile().mkdirs();
}
// 请求下载并返回 新File // 请求下载并返回 新File
return downloadFile(certFilePath, certFile); return downloadFile(certFilePath, certFile);
} }
......
Supports Markdown
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