标题:求助大神,asp.net开发微信自动回复图文消息显示“该公众号暂时无法提供服务 ...
只看楼主
星华5801050
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2015-8-24
 问题点数:0 回复次数:0 
求助大神,asp.net开发微信自动回复图文消息显示“该公众号暂时无法提供服务,请稍后再试”
求助大神,开发微信自动回复图文消息显示“该公众号暂时无法提供服务,请稍后再试”,代码如下:
 var model = new
                    {
                        toUsername = rootElement.SelectSingleNode("ToUserName").InnerText,
                        fromUsername = rootElement.SelectSingleNode("FromUserName").InnerText,
                        msgType = rootElement.SelectSingleNode("MsgType").InnerText,
                        content = rootElement.SelectSingleNode("Content").InnerText
                       
                    };
string resxml =
                            "<xml>"
                            + "<ToUserName><![CDATA[" + model.toUsername + "]]></ToUserName>"
                            + "<FromUserName><![CDATA[" + model.fromUsername + "]]></FromUserName>"
                            + "<CreateTime>" + GetCreateTime() + "</CreateTime>"
                            + "<MsgType><![CDATA[news]]></MsgType>"
                            + "<ArticleCount>1</ArticleCount>"
                            + "<Articles>"
                            + "<item>"
                            + "<Title><![CDATA[欢迎您的光临!]]></Title>"
                            + "<Description><![CDATA[非常感谢您的关注!]]></Description>"
                            + "<PicUrl><![CDATA[http://1.star530.]]></PicUrl>"
                            + "<Url><![CDATA[http://www.baidu.com/]]></Url>"
                            + "</item>"
                            + "</Articles>"
                            + "<FuncFlag>1</FuncFlag></xml>";
                       context.Response.Write(resxml);
搜索更多相关主题的帖子: content 自动回复 开发 
2015-08-24 17:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-456724-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.763486 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved