diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index ac657a464..d01661f3c 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -3,10 +3,14 @@ namespace app\admin\controller; use controller\BasicAdmin; +use think\Db; class Index extends BasicAdmin { public function index() { + $version = Db::query('select version() as ver'); + $version = array_pop($version); + $this->assign('mysql_ver', $version['ver']); return view(); } diff --git a/application/admin/view/index.index.html b/application/admin/view/index.index.html index 5ef9b8e78..b0647b859 100644 --- a/application/admin/view/index.index.html +++ b/application/admin/view/index.index.html @@ -4,6 +4,77 @@ {include file="extra@admin/top"}
{/block} \ No newline at end of file