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 @@
浏览器小图标Browser Icon
- 建议上传 128x128 | 256x256 的 ico 或 png 图片,可以通过 ICON 在线制作 ico 后缀文件 ~ +
+ 建议上传 128x128256x256JPG,PNG,JPEG 图片,保存后会自动生成 48x48ICO 文件 ~ +
diff --git a/app/admin/view/full.html b/app/admin/view/full.html index 36e1fc45e..7386303ac 100644 --- a/app/admin/view/full.html +++ b/app/admin/view/full.html @@ -9,7 +9,6 @@ - diff --git a/app/admin/view/index/index.html b/app/admin/view/index/index.html index 679035197..80f3eef23 100644 --- a/app/admin/view/index/index.html +++ b/app/admin/view/index/index.html @@ -10,7 +10,6 @@ - diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index 96442169e..000000000 Binary files a/public/favicon.ico and /dev/null differ