private function __construct() { $notice = json_decode(Base_Cookie::get($this->key), true); Base_Cookie::remove($this->key); $this->type = $notice['type']; $this->message = $notice['message']; return $this; }
/** * 退出登录 * @return void */ public function logout() { Base_Cookie::remove($this->cookieName); }