From b680baca581d3caa07e67f5f719f22db8ecf784d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Wed, 3 Aug 2022 18:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=90=8E=E5=8F=B0=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Config.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/admin/controller/Config.php b/app/admin/controller/Config.php index 32f866ed7..21c74b0ed 100644 --- a/app/admin/controller/Config.php +++ b/app/admin/controller/Config.php @@ -73,7 +73,7 @@ class Config extends Controller $this->fetch(); } else { $post = $this->request->post(); - // 修改网站后台入口路径,配置运行环境变量 + // 修改网站后台入口路径 if (!empty($post['xpath'])) { if (!preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $post['xpath'])) { $this->error('后台入口名称需要是由英文字母开头!'); @@ -83,17 +83,16 @@ class Config extends Controller } SystemService::setRuntime(null, [$post['xpath'] => 'admin']); } - // 修改网站 ICON 图标文件,替换 public/favicon.ico 文件 + // 修改网站 ICON 图标,替换 public/favicon.ico if (preg_match('#^https?://#', $icon = $post['site_icon'] ?? '')) try { SystemService::setFavicon($icon); } catch (\Exception $exception) { trace_file($exception); - $this->error($exception->getMessage()); } // 数据数据到系统配置表 foreach ($post as $k => $v) sysconf($k, $v); sysoplog('系统配置管理', "修改系统参数成功"); - $this->success('修改系统参数成功!', 'javascript:location.reload()'); + $this->success('修改系统参数成功!', sysuri('admin/index/index') . '#' . sysuri('admin/config/index')); } }