Beispiel #1
0
        /// <summary>
        /// 获取群组小程序码和群组名称等内容
        /// </summary>
        /// <param name="path">小程序码跳转路径</param>
        /// <param name="groupID">群组ID</param>
        /// <returns></returns>
        public Stream GetQRCodeAndGroupDetail(string path, string groupID)
        {
            try
            {
                GroupBLL groupBLL = new GroupBLL();
                string   resul    = groupBLL.GetQRCodeAndGroupDetail(path, 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("GetQRCodeAndGroupDetail Error", err);
                return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
            }
        }