@@ -84,4 +84,11 @@ class User extends Lyapi_Controller{
'lypower'=>implode(',',$all_arr)
]);
}
+
+ public function logout() {
+ $auth_token = $this->input->get_request_header('Auth-Token', TRUE);
+ $this->cache->delete($auth_token);
+ $this->_json_error("登出成功",200);
+ }