From e3e3108f0f6ea035b410b3b3069856d27e0bc63a Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 15 May 2017 17:16:56 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E8=AF=81=E4=B9=A6=E6=96=87=E4=BB=B6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/wechat/controller/Config.php b/application/wechat/controller/Config.php index f0c0a9713..2059bb2a5 100644 --- a/application/wechat/controller/Config.php +++ b/application/wechat/controller/Config.php @@ -108,7 +108,7 @@ class Config extends BasicAdmin { $data = $this->request->post(); foreach ($data as $key => $vo) { if (in_array($key, ['wechat_cert_key_md5', 'wechat_cert_cert_md5']) && !empty($vo)) { - $filename = ROOT_PATH . 'public/upload/' . join('/', str_split($vo, 16)) . '.pem'; + $filename = ROOT_PATH . 'static/upload/' . join('/', str_split($vo, 16)) . '.pem'; !file_exists($filename) && $this->error('支付双向证书上传失败,请重新上传!'); $keyname = str_replace('_md5', '', $key); $data[$keyname] = $filename;