使用的是微信申请的测试号
服务器推送过来的原文如下:
未关注:
<xml><ToUserName><![CDATA[gh_0fe7b79c1d4f]]></ToUserName>
<FromUserName><![CDATA[oKWhmw6-JcMRK1iPU9g9pBf1wQDw]]></FromUserName>
<CreateTime>1606458222</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[subscribe]]></Event>
<EventKey><![CDATA[qrscene_]]></EventKey>
<Ticket><![CDATA[gQF28TwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyX0Z2OWhYRkVkQzMxT3hsRWh2Y1QAAgShiMBfAwQAjScA]]></Ticket>
</xml>
<EventKey><![CDATA[qrscene_]]></EventKey> 这块有开头但是实际参数没有带过来
已关注:
<xml><ToUserName><![CDATA[gh_0fe7b79c1d4f]]></ToUserName>
<FromUserName><![CDATA[oKWhmw6-JcMRK1iPU9g9pBf1wQDw]]></FromUserName>
<CreateTime>1606449897</CreateTime>
<MsgType><![CDATA[event]]></MsgType>
<Event><![CDATA[SCAN]]></Event>
<EventKey><![CDATA[]]></EventKey>
<Ticket><![CDATA[gQGb8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyYWt1VmhpRkVkQzMxUGY3RTF2YzgAAgTPesBfAwQAjScA]]></Ticket>
</xml>
但是<EventKey><![CDATA[]]></EventKey> 这块是空的 参数也没有问题
创建二维码的请求体详情如下:
{
“expire_seconds”: 2592000,
“action_name”: “QR_STR_SCENE”,
“action_info”: {
“scene_str”: “sceneactivity1”
}
}