默认访问admin模块

This commit is contained in:
邹景立 2017-02-13 16:14:51 +08:00
parent 0594f6069d
commit 8b91f3589a

View File

@ -7,6 +7,7 @@ use think\Db;
class Index extends Controller {
public function index() {
$this->redirect('@admin');
$version = Db::query('select version() as ver');
$version = array_pop($version);
$this->assign('mysql_ver', $version['ver']);