public static async Task <UserHash[]> AllBlockList(string uid) { int page = 1; string s = await BcyJson.BlockList(uid, page ++); var r = BlockListJson.FromJson(s); s = await BcyJson.BlockList(uid, page ++); while (s.Length > BcyJson.MinValidJsonLen) { r.Data.UserHash = r.Data.UserHash.Union(BlockListJson.FromJson(s).Data.UserHash).ToArray(); s = await BcyJson.BlockList(uid, page ++); } return(r.Data.UserHash); }
/// <summary> /// 黑名单列表 /// </summary> /// <param name="uid">self_uid</param> public static async Task <UserHash[]> BlockList(string uid, int page) => BlockListJson.FromJson(await BcyJson.BlockList(uid, page)).Data.UserHash;