Пример #1
0
        /// <summary>
        /// 好友列表
        /// </summary>
        /// <param name="session">本人session</param>
        /// <returns></returns>
        public Stream GetFriendList(string session)
        {
            try
            {
                FriendsBLL friBLL = new FriendsBLL();
                string     resul  = friBLL.GetFriendList(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("GetFriendList Error", err);
                return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
            }
        }