关闭

微信扫描二维码返回XML

1448人阅读 评论(2) 收藏 举报
分类:

scancode_waitmsg,回应该事件给用户,用户可收到消息

<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075435</CreateTime>
  <MsgType><![CDATA[event]]></MsgType>
  <Event><![CDATA[scancode_waitmsg]]></Event>
  <EventKey><![CDATA[rselfmenu_0_0]]></EventKey>
  <ScanCodeInfo>
    <ScanType><![CDATA[qrcode]]></ScanType>
    <ScanResult><![CDATA[http://weixin.qq.com/r/pUNnf4HEX9wgrcUc9xa3]]></ScanResult>
    <EventKey><![CDATA[rselfmenu_0_0]]></EventKey>
  </ScanCodeInfo>
</xml>

scancode_push,回应该事件给用户,用户不能收到消息

<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075451</CreateTime>
  <MsgType><![CDATA[event]]></MsgType>
  <Event><![CDATA[scancode_push]]></Event>
  <EventKey><![CDATA[rselfmenu_0_1]]></EventKey>
  <ScanCodeInfo>
    <ScanType><![CDATA[qrcode]]></ScanType>
    <ScanResult><![CDATA[http://weixin.qq.com/r/pUNnf4HEX9wgrcUc9xa3]]></ScanResult>
    <EventKey><![CDATA[rselfmenu_0_1]]></EventKey>
  </ScanCodeInfo>
</xml>

pic_weixin ,下面是一次推送3张相片时的数据

<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075552</CreateTime>
  <MsgType><![CDATA[event]]></MsgType>
  <Event><![CDATA[pic_weixin]]></Event>
  <EventKey><![CDATA[rselfmenu_1_2]]></EventKey>
  <SendPicsInfo>
    <Count>3</Count>
    <PicList>
      <item>
        <PicMd5Sum><![CDATA[a6ab74b73a298f49f6fc66f41f88d3c7]]></PicMd5Sum>
      </item>
      <item>
        <PicMd5Sum><![CDATA[5b9aea2b3683c5c21aaf3629739cafd9]]></PicMd5Sum>
      </item>
      <item>
        <PicMd5Sum><![CDATA[2325ff3f39705ac987d3e0660906791d]]></PicMd5Sum>
      </item>
    </PicList>
    <EventKey><![CDATA[rselfmenu_1_2]]></EventKey>
  </SendPicsInfo>
</xml>

回应上述消息,用户收不到,但微信会继续推送3个图片消息给接口

<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075562</CreateTime>
  <MsgType><![CDATA[image]]></MsgType>
  <PicUrl><![CDATA[http://mmbiz.qpic.cn/mmbiz/qOTIrRtMKFxZQo3cQ6vYxmfteo0fw2Y00MuuFS6OjlNvTkx0nBQJibjjafQMf4dCtJwyMeP5e3SQCuJpcoJdb8Q/0]]></PicUrl>
  <MsgId>6064818358471506877</MsgId>
  <MediaId><![CDATA[AM8Gbiu7S2vTIMS2l9zNCWiMCpeM8wccmKdFxmstHiuAybCbB-08dTQJN40cCIBD]]></MediaId>
</xml>
<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075564</CreateTime>
  <MsgType><![CDATA[image]]></MsgType>
  <PicUrl><![CDATA[http://mmbiz.qpic.cn/mmbiz/qOTIrRtMKFxZQo3cQ6vYxmfteo0fw2Y0ellMniarWto4zL0pWKhr6a0FSARDeXprSgd0JmgU0YQo2iagGsYc1iaLA/0]]></PicUrl>
  <MsgId>6064818367061441471</MsgId>
  <MediaId><![CDATA[2CJKZ2mft-5hWEkVcVmnKwyvp3y59Uzv7YdpBsnGIyTlkMNb0ytU4oimTgimBGyP]]></MediaId>
</xml>
<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075567</CreateTime>
  <MsgType><![CDATA[image]]></MsgType>
  <PicUrl><![CDATA[http://mmbiz.qpic.cn/mmbiz/qOTIrRtMKFxZQo3cQ6vYxmfteo0fw2Y0mwQoENttnmYAz0VTicY3xkO0lhn9mE5r3FB4cF04kia50riajcjY1qvzA/0]]></PicUrl>
  <MsgId>6064818379946343361</MsgId>
  <MediaId><![CDATA[VICm1-y8w_MmdpcLYWP0u12HVXrWdhm3c3tdq1PTsbiFFgH6YOcmmIEbZ27z-Qcl]]></MediaId>
</xml>

上述多个图片消息,后台收到都能进行单独回应,用户可以收到响应消息。

pic_photo_or_album,方式和pic_weixin 一样,先推送菜单事件,再推送图片消息

<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075614</CreateTime>
  <MsgType><![CDATA[event]]></MsgType>
  <Event><![CDATA[pic_photo_or_album]]></Event>
  <EventKey><![CDATA[rselfmenu_1_1]]></EventKey>
  <SendPicsInfo>
    <Count>1</Count>
    <PicList>
      <item>
        <PicMd5Sum><![CDATA[58f4989164b2a432889e64fa81632152]]></PicMd5Sum>
      </item>
    </PicList>
    <EventKey><![CDATA[rselfmenu_1_1]]></EventKey>
  </SendPicsInfo>
</xml>
<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075618</CreateTime>
  <MsgType><![CDATA[image]]></MsgType>
  <PicUrl><![CDATA[http://mmbiz.qpic.cn/mmbiz/qOTIrRtMKFxZQo3cQ6vYxmfteo0fw2Y0fwSdF54rribCj9zqDG0wVDsiasKuUC8gskbuZmX43a1hs9esySIvmrqA/0]]></PicUrl>
  <MsgId>6064818598989675467</MsgId>
  <MediaId><![CDATA[Jh7Bsjaodmz-Dc_Hdz_wRzY3RiFxNvA4JHpUWRNRCIgps19ANsDFIOYOUV1dIVYV]]></MediaId>
</xml>

pic_sysphoto 这个后台其实收不到该菜单的消息,点击它后,调用的是手机里面的照相机功能,而照相以后再发过来时,就收到的是一个图片消息了

<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412135923</CreateTime>
  <MsgType><![CDATA[image]]></MsgType>
  <PicUrl><![CDATA[http://mmbiz.qpic.cn/mmbiz/qOTIrRtMKFxGzYCchrNiczZ9aCd1fgCEWbicHGvmaz1d7VZOSMqoLB4RL69rK2Fos6fSM4FJRkLtiajpe32ibkicw1A/0]]></PicUrl>
  <MsgId>6065077606992462276</MsgId>
  <MediaId><![CDATA[PqRRUPLhMc27EG5F4cCtTozBsin7SY8kPRRuAF-CwPl5MzR5ewE5oji0FhGTDl6_]]></MediaId>
</xml>

location_select 将会调起发送位置功能,菜单的响应用户收不到,在用户发送位置之后,会再推送一个地理位置消息功能给用户

<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075681</CreateTime>
  <MsgType><![CDATA[event]]></MsgType>
  <Event><![CDATA[location_select]]></Event>
  <EventKey><![CDATA[rselfmenu_2_0]]></EventKey>
  <SendLocationInfo>
    <Location_X><![CDATA[22.538145]]></Location_X>
    <Location_Y><![CDATA[113.952298]]></Location_Y>
    <Scale><![CDATA[13]]></Scale>
    <Label><![CDATA[深圳市南山区高新南一道9号]]></Label>
    <Poiname><![CDATA[]]></Poiname>
    <EventKey><![CDATA[rselfmenu_2_0]]></EventKey>
  </SendLocationInfo>
</xml>
<xml>
  <ToUserName><![CDATA[gh_82479813ed64]]></ToUserName>
  <FromUserName><![CDATA[ojpX_jig-gyi3_Q9fHXQ4rdHniQs]]></FromUserName>
  <CreateTime>1412075681</CreateTime>
  <MsgType><![CDATA[location]]></MsgType>
  <Location_X>22.538145</Location_X>
  <Location_Y>113.952298</Location_Y>
  <Scale>13</Scale>
  <Label><![CDATA[深圳市南山区高新南一道9号飞亚达科技大厦方倍工作室]]></Label>
  <MsgId>6064818869572615123</MsgId>
</xml>

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:180494次
    • 积分:2965
    • 等级:
    • 排名:第11851名
    • 原创:108篇
    • 转载:13篇
    • 译文:4篇
    • 评论:29条
    文章分类
    最新评论