diff --git a/app/Http/Admin/Views/setting/site.volt b/app/Http/Admin/Views/setting/site.volt index 7d51d8b5..11b91cb5 100644 --- a/app/Http/Admin/Views/setting/site.volt +++ b/app/Http/Admin/Views/setting/site.volt @@ -27,8 +27,8 @@
- - + +
diff --git a/app/Http/Home/Controllers/IndexController.php b/app/Http/Home/Controllers/IndexController.php index a8818391..bdee64b7 100644 --- a/app/Http/Home/Controllers/IndexController.php +++ b/app/Http/Home/Controllers/IndexController.php @@ -15,9 +15,9 @@ class IndexController extends Controller $this->seo->setKeywords($this->siteInfo['keywords']); $this->seo->setDescription($this->siteInfo['description']); - $template = $this->siteInfo['index_tpl'] ?? 'full'; + $type = $this->siteInfo['index_tpl_type'] ?? 'full'; - if ($template == 'full') { + if ($type == 'full') { $this->fullIndex(); } else { $this->simpleIndex(); diff --git a/db/migrations/20200827112717_insert_setting_data.php b/db/migrations/20200827112717_insert_setting_data.php index e2a4b75b..7b5999b8 100644 --- a/db/migrations/20200827112717_insert_setting_data.php +++ b/db/migrations/20200827112717_insert_setting_data.php @@ -312,7 +312,7 @@ final class InsertSettingData extends AbstractMigration ], [ 'section' => 'site', - 'item_key' => 'index_tpl', + 'item_key' => 'index_tpl_type', 'item_value' => 'simple', ], [ @@ -338,7 +338,7 @@ final class InsertSettingData extends AbstractMigration [ 'section' => 'site', 'item_key' => 'police_link', - 'item_value' => 'http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=abc', + 'item_value' => '', ], [ 'section' => 'site',