From 4aa216baca8ceaf3f4cc3f7c1f0b21ab47831f9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 14 Mar 2017 17:28:26 +0800 Subject: [PATCH] =?UTF-8?q?[dev]=E6=9B=B4=E6=96=B0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E6=9D=83=E9=99=90=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Role.php | 34 --------------------------- application/admin/model/Node.php | 3 +++ 2 files changed, 3 insertions(+), 34 deletions(-) delete mode 100644 application/admin/controller/Role.php diff --git a/application/admin/controller/Role.php b/application/admin/controller/Role.php deleted file mode 100644 index d27d053f2..000000000 --- a/application/admin/controller/Role.php +++ /dev/null @@ -1,34 +0,0 @@ - - * @date 2017/02/15 18:14 - */ -class Role extends BasicAdmin { - - protected $table = 'SystemRole'; - - public function index() { - parent::_list($this->table); - } - -} diff --git a/application/admin/model/Node.php b/application/admin/model/Node.php index 8e998890f..214c1fc08 100644 --- a/application/admin/model/Node.php +++ b/application/admin/model/Node.php @@ -37,6 +37,9 @@ class Node { $alias["{$vo['node']}"] = $vo; } foreach (self::getNodeTree(APP_PATH) as $thr) { + if (stripos($thr, 'admin/plugs') === 0 && stripos($thr, 'admin/index')) { + continue; + } $tmp = explode('/', $thr); $one = $tmp[0]; $two = "{$tmp[0]}/{$tmp[1]}";