修改meta
This commit is contained in:
1 parent
eccd466092
commit
e4ccb57271
3 files changed
+14
-3
No files matched your search
@@ -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');
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
|
||||
<meta name="keywords" content="{php}echo $list['keywords']{/php}">
|
||||
<meta name="description" content="{php}echo $list['description']{/php}">
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
<link rel="stylesheet" href="__XADMIN__/css/font.css">
|
||||
<link rel="stylesheet" href="__XADMIN__/css/login.css">
|
||||
|
||||
@@ -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' => '大连长兴岛经济区',
|
||||
];
|
||||
// 保存数据
|
||||
|
||||
Reference in new issue
Block a user