From 3363bca11416134dc613ef177f4333b147066539 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 15 May 2017 17:19:10 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/wechat/controller/Config.php b/application/wechat/controller/Config.php index 2059bb2a5..0b6d6bdf6 100644 --- a/application/wechat/controller/Config.php +++ b/application/wechat/controller/Config.php @@ -110,8 +110,7 @@ class Config extends BasicAdmin { if (in_array($key, ['wechat_cert_key_md5', 'wechat_cert_cert_md5']) && !empty($vo)) { $filename = ROOT_PATH . 'static/upload/' . join('/', str_split($vo, 16)) . '.pem'; !file_exists($filename) && $this->error('支付双向证书上传失败,请重新上传!'); - $keyname = str_replace('_md5', '', $key); - $data[$keyname] = $filename; + $data[str_replace('_md5', '', $key)] = $filename; } } unset($data['wechat_cert_key_md5'], $data['wechat_cert_cert_md5']);