/// <summary> /// 加入群组 /// </summary> /// <param name="session">session</param> /// <param name="groupID">群组ID</param> /// <returns></returns> public Stream IntoGroup(string session, string groupID) { try { GroupBLL groupBLL = new GroupBLL(); string resul = groupBLL.IntoGroup(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("IntoGroup Error", err); return(new MemoryStream(Encoding.UTF8.GetBytes("error"))); } }