修复一处bug
This commit is contained in:
@@ -5,10 +5,13 @@ use app\common\model\AuthRule;
|
||||
|
||||
class Admin extends Base {
|
||||
|
||||
protected $param;
|
||||
|
||||
public function _initialize() {
|
||||
parent::_initialize();
|
||||
|
||||
$this->param = $this->request->param();
|
||||
|
||||
if (!is_login() and !in_array($this->url_path, array('admin/index/login', 'admin/index/logout', 'admin/index/verify'))) {
|
||||
$this->redirect('admin/index/login');
|
||||
}
|
||||
@@ -211,4 +214,9 @@ class Admin extends Base {
|
||||
$this->assign('extend_menu', array('管理插件' => $menu));
|
||||
}
|
||||
}
|
||||
|
||||
protected function getArrayParam(){
|
||||
$param = $this->request->param();
|
||||
return is_array($param['id']) ? array('IN', $param['id']) : $param['id'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user