Example #1
0
 /**
  *  * 获取当前登录的管理员的信息
  *   *
  *    * @return array
  *     */
 protected function getSession()
 {
     if (null === $this->session) {
         $sess = Blue_Passport::getInfo();
         if (empty($sess)) {
             $this->session = array();
         } else {
             $this->session = $sess;
         }
     }
     return $this->session;
 }
Example #2
0
 /**
  * 设置登录退出
  */
 public function setLogout()
 {
     return Blue_Passport::setInfo(null, -1);
 }