后台上传检验文件问题

This commit is contained in:
evoxwht 2021-10-26 17:30:29 +08:00
parent 8588d1787b
commit 6d80ec7b16

View File

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