收藏
回答

关注事件返回参数为json


https://developers.weixin.qq.com/doc/offiaccount/Account_Management/Generating_a_Parametric_QR_Code.html


获取关注二维码:json:{"expire_seconds": 604800, "action_name": "QR_STR_SCENE", "action_info": {"scene": {"scene_str": "24"}}}

获取关注二维码结果:result:{"ticket":"gQFG8TwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyOXZRS2dENF9hQlUxd2Mza3h2Y2gAAgSMyIpfAwSAOgkA","expire_seconds":604800,"url":"http:\/\/weixin.qq.com\/q\/029vQKgD4_aBU1wc3kxvch"}

获取到用户关注事件:{"Ticket":"gQFG8TwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyOXZRS2dENF9hQlUxd2Mza3h2Y2gAAgSMyIpfAwSAOgkA","CreateTime":"1602930740","EventKey":"qrscene_{\"3\":51484,\"2\":384200480,\"1\":\"TP\"}","Event":"subscribe","ToUserName":"gh_fbca353efc6c","FromUserName":"ouXPksjgQdbvV91rOFCBO0lx9yAk","MsgType":"event"}

{"scene_str": "24"} 这里传的24

但是 "qrscene_{\"3\":51484,\"2\":384200480,\"1\":\"TP\"}", 返回的是一串json,期望是qrscene_24


请问这个问题是什么回事呢?如何解决?


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

1 个回答

登录 后发表内容
问题标签