public function classlist($classid)
 {
     $auto_login = new \User\Api\UserApi();
     if ($auto_login->AutoLogin()) {
         $isLogin = true;
         if (session('user_role') != 3 && session('user_role') != 4) {
             echo '你没有权限查看班级成员列表';
             return;
         }
     } else {
         $isLogin = false;
     }
     $class = new \Home\Model\ClassModel();
     $classlist = $class->GetMember($classid);
     $this->assign('isLogin', $isLogin);
     $this->assign('classlist', $classlist);
     $this->display();
 }
 public function _initialize()
 {
     $auto_login = new \User\Api\UserApi();
     if ($auto_login->AutoLogin()) {
         // session _ACCESS_LIST
         // print_r($_SESSION);
         if (session('user_role') == 3 || session('user_role') == 4) {
             $this->redirect('/User/Page/intro');
             return;
         }
         $access = \Org\Util\Rbac::AccessDecision();
         if (!$access) {
             $this->error('对不起,您没有访问权限');
         }
     } else {
         $this->redirect('/User/Page/intro');
     }
 }