[更新]修改微信证书文件处理

This commit is contained in:
Anyon 2017-05-15 17:19:10 +08:00
parent e3e3108f0f
commit 3363bca114

View File

@ -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']);