收藏
回答

公众号生成临时二维码,回调参数EventKey没有值?

【请求地址】: https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token=38_E1tuvxvJvLtUiNL7xSbFtH1dAhoEquWeN0lS82W7q5JBYz3trOZlD3Zbw_x_6yigzvKsBhFAvjPZkE1R1m7G46F1FNZlqt-rlBRqnvIvIlp8MKyUIETRdyn3L9jAJWxHGxIIrHUYv_6XOw0bTQEcAEDEBP

【请求参数】:{"action_name":"QR_STR_SCENE","expire_seconds":10800,"action_info":{"scene":{"scene_str":"gift_1298439407299280897"}}}

【响应数据】:{"ticket":"gQEw8TwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyWkFTcmgyNDRkMjAxTEJ2dzF2Y1gAAgS1taBfAwQwKgAA","expire_seconds":10800,"url":"http:\/\/weixin.qq.com\/q\/02ZASrh244d201LBvw1vcX"}



回调参数如下:


{"allFieldsMap":{"CreateTime":"1604367805","EventKey":"","Event":"subscribe","ToUserName":"gh_23f2d6a925d5","FromUserName":"oBERCwMXSsoM612rWNOnPKok14Wk","MsgType":"event"},"createTime":"1604367805","event":"subscribe","eventKey":"","fromUser":"oBERCwMXSsoM612rWNOnPKok14Wk","hardWare":{},"msgType":"event","scanCodeInfo":{},"sendLocationInfo":{},"sendPicsInfo":{"picList":[]},"toUser":"gh_23f2d6a925d5"}

回答关注问题邀请回答
收藏

2 个回答

  • 张三疯
    张三疯
    2020-11-05

    看日志好像本次关注请求不是来自扫码。

    比如11-4号16:52:54,有一次关注。扫码场景值是“gift_1298439407299280897_1000.00”,事件中是有EventKey的。

    2020-11-05
    有用
    回复 1
    • 欢乐马
      欢乐马
      2020-11-27
      我的是有Ticket 但是<EventKey><![CDATA[]]></EventKey>  这块是空的  参数也没有问题  能帮忙看看么 {
          "expire_seconds": 2592000,
          "action_name": "QR_STR_SCENE",
          "action_info": {
              "scene_str": "sceneactivity1"
          }
      }
      2020-11-27
      回复
  • 中国制造
    中国制造
    2020-11-03

    没人帮忙看一吗?

    2020-11-03
    有用
    回复
登录 后发表内容
问题标签