23 lines
466 B
PHP
Raw Normal View History

2019-12-02 23:04:43 +08:00
<?php
namespace catchAdmin\index\controller;
2019-12-11 21:00:24 +08:00
use catcher\base\CatchController;
2019-12-12 18:52:44 +08:00
use think\facade\Db;
2019-12-06 08:24:07 +08:00
2019-12-11 21:00:24 +08:00
class Index extends CatchController
2019-12-02 23:04:43 +08:00
{
2019-12-12 18:52:44 +08:00
/**
*
* @time 2019年12月12日
* @throws \Exception
* @return string
*/
public function dashboard(): string
{
$mysqlVersion = Db::query('select version() as version');
return $this->fetch([
'mysql_version' => $mysqlVersion['0']['version'],
]);
}
2020-01-07 19:00:04 +08:00
}