新增解析功能

This commit is contained in:
JaguarJack
2020-04-29 17:35:29 +08:00
parent 45af3fbc5f
commit 4d444e9bbc
68 changed files with 49 additions and 4863 deletions

View File

@@ -1,22 +0,0 @@
<?php
namespace catchAdmin\index\controller;
use catcher\base\CatchController;
use think\facade\Db;
class Index extends CatchController
{
/**
*
* @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'],
]);
}
}

View File

@@ -1,13 +0,0 @@
{
"name": "首页管理",
"alias": "index",
"description": "",
"keywords": [],
"order": 0,
"services": [
"catchAdmin\\index\\IndexService"
],
"aliases": {},
"files": [],
"requires": []
}

View File

@@ -1,5 +0,0 @@
<?php
$router->get('/', '\catchAdmin\index\controller\Index@index');
$router->get('theme', '\catchAdmin\index\controller\Index@theme');
$router->get('dashboard', '\catchAdmin\index\controller\Index@dashboard');