From e4ccb57271f39e091d91b71fd11c960330981a51 Mon Sep 17 00:00:00 2001 From: cxdbz Date: Sun, 5 Jan 2020 10:51:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9meta?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/login/controller/Index.php | 9 +++++++++ app/login/view/index/index.html | 2 ++ database/seeds/SystemBase.php | 6 +++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/login/controller/Index.php b/app/login/controller/Index.php index 1b8b53f2..49903b46 100644 --- a/app/login/controller/Index.php +++ b/app/login/controller/Index.php @@ -31,6 +31,15 @@ class Index // 清除session(当前作用域) session(null); + //实例化系统数据模型 + $db = new \think\facade\Db; + + // 查询系统信息 + $list = $db::table('cj_system_base') + ->order(['id'=>'desc']) + ->field('id,keywords,description') + ->find(); + // 获取系统名称和版本号 $list['webtitle'] = Config::get('shangma.webtitle'); $list['version'] = Config::get('shangma.version'); diff --git a/app/login/view/index/index.html b/app/login/view/index/index.html index 9b59c4f6..fdbb2eaa 100644 --- a/app/login/view/index/index.html +++ b/app/login/view/index/index.html @@ -6,6 +6,8 @@ + + diff --git a/database/seeds/SystemBase.php b/database/seeds/SystemBase.php index f042b2ad..ac85f92c 100644 --- a/database/seeds/SystemBase.php +++ b/database/seeds/SystemBase.php @@ -18,9 +18,9 @@ class SystemBase extends Seeder $rows[] = [ 'create_time' => time(), 'update_time' => time(), - 'keywords' => '尚码,成绩统计,成绩管理,成绩分析', - 'description' => '适合的才是好用的。', - 'thinks' => 'ThinkPHP,X-admin,百度Echarts,jquery。', + 'keywords' => '尚码成绩,成绩统计,成绩管理,成绩分析,成绩查询', + 'description' => '前端采用X-admin,后端采用Thinkphp。寻找最方便的录入成绩方法,提供最丰富的统计项目。', + 'thinks' => 'ThinkPHP,X-admin,百度Echarts,jquery,同时感谢为尚码提出意见或建议的朋友,和正在使用尚码系统的朋友们。', 'danwei' => '大连长兴岛经济区', ]; // 保存数据