Beispiel #1
0
        /// <summary>
        /// 面对面加群(创建新群或加群)
        /// </summary>
        /// <param name="session">session</param>
        /// <param name="password">口令</param>
        /// <param name="lon">经度</param>
        /// <param name="lat">纬度</param>
        /// <returns></returns>
        public Stream FaceToFaceCreateGroup(string session, string password, string lon, string lat)
        {
            try
            {
                GroupBLL groupBLL = new GroupBLL();
                string   resul    = groupBLL.FaceToFaceCreateGroup(session, password, lon, lat);

                if (!string.IsNullOrEmpty(resul))
                {
                    return(new MemoryStream(Encoding.UTF8.GetBytes(resul)));
                }
                else
                {
                    return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
                }
            }
            catch (Exception err)
            {
                Logger.Error("FaceToFaceCreateGroup Error", err);
                return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
            }
        }