From 6d80ec7b163999dc65843c1374110327d646a81c Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Tue, 26 Oct 2021 17:30:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E4=B8=8A=E4=BC=A0=E6=A3=80?= =?UTF-8?q?=E9=AA=8C=E6=96=87=E4=BB=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/adminapi/controller/v1/setting/SystemConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/adminapi/controller/v1/setting/SystemConfig.php b/crmeb/app/adminapi/controller/v1/setting/SystemConfig.php index f467534a6..9e19ef86a 100644 --- a/crmeb/app/adminapi/controller/v1/setting/SystemConfig.php +++ b/crmeb/app/adminapi/controller/v1/setting/SystemConfig.php @@ -289,7 +289,7 @@ class SystemConfig extends AuthController } if (isset($post['weixin_ckeck_file'])) { $from = public_path() . $post['weixin_ckeck_file']; - $to = public_path() . explode('/', $post['weixin_ckeck_file'])[2]; + $to = public_path() . array_reverse(explode('/', $post['weixin_ckeck_file']))[0]; @copy($from, $to); } if (isset($post['admin_port'])) {