Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
0a9ccc53
Commit
0a9ccc53
authored
May 27, 2022
by
terrfly
Browse files
OSS证书下载到本地: 当文件夹不存在时, 需要创建。 避免下载提示文件夹不存在导致业务异常。
parent
b31372ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/util/ChannelCertConfigKitBean.java
View file @
0a9ccc53
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment