目录结构调整

This commit is contained in:
2016-06-30 16:53:58 +08:00
parent 7eaa319115
commit 52f669abec
107 changed files with 4600 additions and 476 deletions

View File

@@ -23,9 +23,7 @@ class Group extends Admin {
//会员分组首页控制器
public function index(){
$type = input('get.type','admin','trim');
public function index($type = 'admin'){
$map['module'] = $type;
$list = db('AuthGroup')->where($map)->order('id desc')->paginate(10);
@@ -112,9 +110,7 @@ class Group extends Admin {
}
//权限节点控制器
public function access(){
$type = input('get.type','admin','trim');
public function access($type = 'admin'){
$map['module'] = $type;
$list = db('AuthRule')->where($map)->order('id desc')->paginate(10);
@@ -253,8 +249,7 @@ class Group extends Admin {
}
}
public function delnode(){
$id = input('id','','trim,intval');
public function delnode($id){
if (!$id) {
return $this->error("非法操作!");
}