mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改微信证书文件处理
This commit is contained in:
parent
a948e6cb10
commit
e3e3108f0f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user