/// <summary> /// 群组人员置顶 取消置顶 删除 /// </summary> /// <param name="userID">人员ID</param> /// <param name="groupID">群组ID</param> /// <param name="cookie">操作的功能(top置顶distop取消置顶delete删除)</param> /// <returns></returns> public Stream EditUser(string session, string userID, string groupID, string cookie) { try { GroupBLL groupBLL = new GroupBLL(); string resul = groupBLL.EditUser(session, userID, groupID, cookie); if (!string.IsNullOrEmpty(resul)) { return(new MemoryStream(Encoding.UTF8.GetBytes(resul))); } else { return(new MemoryStream(Encoding.UTF8.GetBytes("error"))); } } catch (Exception err) { Logger.Error("EditUser Error", err); return(new MemoryStream(Encoding.UTF8.GetBytes("error"))); } }