生成二维码的时候的参数{“”action_name””: “”QR_LIMIT_SCENE””, “”action_info””: {“”scene””: {“”scene_id””:” + shopID + “}}}
回调
requestXML.ToUserName = rootElement.SelectSingleNode(“ToUserName”).InnerText;
requestXML.FromUserName = rootElement.SelectSingleNode(“FromUserName”).InnerText;
requestXML.CreateTime = rootElement.SelectSingleNode(“CreateTime”).InnerText;
requestXML.MsgType = MsgType.InnerText;
if (requestXML.MsgType == “event”)
{
requestXML.Event = rootElement.SelectSingleNode(“Event”).InnerText;
requestXML.EventKey = rootElement.SelectSingleNode(“EventKey”).InnerText;
if (requestXML.Event == “SCAN”)
{
回调
requestXML.ToUserName = rootElement.SelectSingleNode(“ToUserName”).InnerText;
requestXML.FromUserName = rootElement.SelectSingleNode(“FromUserName”).InnerText;
requestXML.CreateTime = rootElement.SelectSingleNode(“CreateTime”).InnerText;
requestXML.MsgType = MsgType.InnerText;
if (requestXML.MsgType == “event”)
{
requestXML.Event = rootElement.SelectSingleNode(“Event”).InnerText;
requestXML.EventKey = rootElement.SelectSingleNode(“EventKey”).InnerText;
if (requestXML.Event == “SCAN”)
{
requestXML.ScanType = rootElement.SelectSingleNode(“ScanType”).InnerText;//扫描类型
requestXML.ScanResult = rootElement.SelectSingleNode(“ScanResult”).InnerText;//扫描结果
HttpContext.Current.Response.Redirect(“http://qwertt.xicp.net/VShop.aspx?shopid=”+requestXML.EventKey);
}
}
想要扫描二维码的时候(已关注),跳转到这个链接 带上scene_id,这个有什么错误吗。刚开始研究,,谢谢大家帮忙啊。
解决方案