Update Config.php

This commit is contained in:
Anyon 2022-03-01 18:22:09 +08:00
parent 4d1ff2c46a
commit 4b8e12919c

View File

@ -94,7 +94,7 @@ class Config extends Controller
$info = LocalStorage::down($icon); $info = LocalStorage::down($icon);
} }
if (!empty($info) && !empty($info['file'])) { if (!empty($info) && !empty($info['file'])) {
$favicon = new FaviconExtend($info['file']); $favicon = new FaviconExtend($info['file'], [256, 256]);
$favicon->saveIco("{$this->app->getRootPath()}public/favicon.ico"); $favicon->saveIco("{$this->app->getRootPath()}public/favicon.ico");
} }
} catch (\Exception $exception) { } catch (\Exception $exception) {