diff --git a/app/admin/controller/Config.php b/app/admin/controller/Config.php index e88e8158b..24ed082ed 100644 --- a/app/admin/controller/Config.php +++ b/app/admin/controller/Config.php @@ -94,11 +94,12 @@ class Config extends Controller $info = LocalStorage::down($icon); } if (!empty($info) && !empty($info['file'])) { - $favicon = new FaviconExtend($info['file'], [256, 256]); + $favicon = new FaviconExtend($info['file'], [48, 48]); $favicon->saveIco("{$this->app->getRootPath()}public/favicon.ico"); } } catch (\Exception $exception) { trace_file($exception); + $this->error($exception->getMessage()); } // 数据数据到系统配置表 foreach ($post as $k => $v) sysconf($k, $v); diff --git a/app/admin/view/config/system.html b/app/admin/view/config/system.html index 85b46525d..088b5f5e7 100644 --- a/app/admin/view/config/system.html +++ b/app/admin/view/config/system.html @@ -42,9 +42,11 @@