/// <summary> /// 我的群组列表 /// </summary> /// <param name="session">session</param> /// <returns></returns> public Stream GetMyGroups(string session) { try { GroupBLL groupBLL = new GroupBLL(); string resul = groupBLL.GetMyGroups(session); if (!string.IsNullOrEmpty(resul)) { return(new MemoryStream(Encoding.UTF8.GetBytes(resul))); } else { return(new MemoryStream(Encoding.UTF8.GetBytes("error"))); } } catch (Exception err) { Logger.Error("GetMyGroups Error", err); return(new MemoryStream(Encoding.UTF8.GetBytes("error"))); } }