Ejemplo n.º 1
0
        /// <summary>
        /// 被动请求,接收图片
        /// </summary>
        /// <param name="httpRequest"></param>
        /// <param name="msg"></param>
        public static void ResponseReceviePic(HttpResponseBase Response, MsgModel msg, ResultCryptography ccg)
        {
            msg.ImageModel.MediaId = "9c954bmqAZ2X7o3CdeLHiYxZfnCizh9MAdrNUS1Gn6shMhFbcYiLmauIkcxpJa5B";
            msg.TextModel          = new TextModel()
            {
                Content = "您好,你的图片消息已收到,这是自动回复"
            };
            var remsg = XmlHelpler.GetImageXml(msg);

            Response.Write(GetMsg(remsg, ccg));
        }