/// <summary> /// 设置指定用户的登录状态为离线 /// </summary> /// <param name="id">用户账号</param> /// <returns>Result</returns> public Result <object> userSignOut(string id) { if (!verify()) { return(result); } TokenManage.delete(tokenId); return(result); }
/// <summary> /// 移除指定账户的AccessToken /// </summary> /// <returns>Result</returns> public Result <object> removeToken() { var verify = new Verify(); manage = verify.manage; tokenId = verify.tokenId; if (manage == null) { return(result.invalidToken()); } TokenManage.delete(tokenId); Core.setUserCache(manage); return(result.success()); }