From 0a9ccc53b48882f8e609a182df009a44d8607102 Mon Sep 17 00:00:00 2001 From: terrfly Date: Fri, 27 May 2022 10:23:30 +0800 Subject: [PATCH] =?UTF-8?q?OSS=E8=AF=81=E4=B9=A6=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=88=B0=E6=9C=AC=E5=9C=B0=EF=BC=9A=20=E5=BD=93=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9=E4=B8=8D=E5=AD=98=E5=9C=A8=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=20=E9=9C=80=E8=A6=81=E5=88=9B=E5=BB=BA=E3=80=82=20=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E4=B8=8B=E8=BD=BD=E6=8F=90=E7=A4=BA=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E4=B8=8D=E5=AD=98=E5=9C=A8=E5=AF=BC=E8=87=B4=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E5=BC=82=E5=B8=B8=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeequan/jeepay/pay/util/ChannelCertConfigKitBean.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/util/ChannelCertConfigKitBean.java b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/util/ChannelCertConfigKitBean.java index 5883cef..2089ee5 100644 --- a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/util/ChannelCertConfigKitBean.java +++ b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/util/ChannelCertConfigKitBean.java @@ -49,6 +49,11 @@ public class ChannelCertConfigKitBean { return certFile; } + // 当文件夹不存在时, 需要创建。 + if(!certFile.getParentFile().exists()){ + certFile.getParentFile().mkdirs(); + } + // 请求下载并返回 新File return downloadFile(certFilePath, certFile); }