예제 #1
0
파일: UserApi.php 프로젝트: ttym7993/Linger
 /**
  * 用户登出
  */
 public function logout()
 {
     try {
         lib()->load('UserLogin');
         UserLogin::Logout();
         $this->rt_msg['status'] = true;
     } catch (\Exception $ex) {
         $this->rt_msg['msg'] = $ex->getMessage();
     }
 }
예제 #2
0
파일: Home.php 프로젝트: ttym7993/Linger
 public function logout()
 {
     try {
         lib()->load('UserLogin');
         UserLogin::Logout();
         redirect();
     } catch (\Exception $ex) {
         $this->theme->setTitle("登出失败");
         $this->__view("Home/header.php");
         $this->__view("Home/logout_error.php");
         $this->__view("Home/footer.php");
     }
 }