/// <summary> /// 查看是否在群组中 /// </summary> /// <param name="session">session</param> /// <param name="groupID">群组ID</param> /// <returns></returns> public Stream IsInGroup(string session, string groupID) { try { GroupBLL groupBLL = new GroupBLL(); string resul = groupBLL.IsInGroup(session, groupID); if (!string.IsNullOrEmpty(resul)) { return(new MemoryStream(Encoding.UTF8.GetBytes(resul))); } else { return(new MemoryStream(Encoding.UTF8.GetBytes("error"))); } } catch (Exception err) { Logger.Error("IsInGroup Error", err); return(new MemoryStream(Encoding.UTF8.GetBytes("error"))); } }