添加统计代码

This commit is contained in:
augushong
2019-08-23 15:44:08 +08:00
parent b0427a57b8
commit ac14c74e8a
4 changed files with 6 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class CreateTableSystemConfig extends Migrator
{
$table = $this->table('system_config',['comment'=>'系统配置表']);
$table->addColumn('name','string',['limit'=>30,'comment'=>'配置名称']);
$table->addColumn('value','string',['limit'=>200,'comment'=>'值']);
$table->addColumn('value','string',['limit'=>500,'comment'=>'值']);
$table->addIndex('name');
$table->save();
}

View File

@@ -2,4 +2,3 @@
<!-- 底部固定区域 -->
© layui.com - 底部固定区域
</div>
{:get_system_config('site_tongji')}

View File

@@ -17,4 +17,5 @@
var element = layui.element;
});
</script>
</script>
{:get_system_config('site_tongji')}

View File

@@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{:get_system_config('site_name')}</title>
{:get_system_config('site_tongji')}
</head>
<body>
@@ -24,6 +25,8 @@
$('#README-PRE').html(result)
</script>
</body>
</html>