/**
  *
  */
 protected function _initialize()
 {
     if (!RBAC::AccessDecision('Admin')) {
         // 登录检查
         RBAC::checkLogin();
         // 提示错误信息 无权限
         $httpReferer = $_SERVER['HTTP_REFERER'];
         $parsedHttpReferer = parse_url($httpReferer);
         $httpQuery = $parsedHttpReferer['query'];
         parse_str($httpQuery, $parsedHttpQuery);
         if ($parsedHttpQuery['a'] == 'login' && $parsedHttpQuery['c'] == 'login') {
             $UserEvent = new \Common\Event\UserEvent();
             $logoutRes = $UserEvent->logout();
             $this->error(L('_VALID_ACCESS_'));
         } else {
             $this->error(L('_VALID_ACCESS_'));
         }
     }
 }
 /**
  *
  */
 public function logout()
 {
     $UserEvent = new \Common\Event\UserEvent();
     $logoutRes = $UserEvent->logout();
     $this->json2Response($logoutRes);
 }