收藏
回答

公众号个性化菜单匹配规则无效,提示请求成功但并没有发返回menuid,查询结果中无匹配规则?

自定义菜单: 自定义菜单创建接口 /menu/create

请求地址:

https://api.weixin.qq.com/cgi-bin/menu/create?access_token=33_F6G8WyEGl7y9Z_SoeXyqtHKi83eRwG3Km_RLqKd4FnehqKhIcvCwiCvbl2lhcRG1wfXFUO83w1Xfqls5Wj_ns6WK-6Olv1jzIK2whK8kKwwdXt70dW3FtFZA1d_Rgcu4fkKYOl6nrQjBBsIlEAPbAFALHW

返回结果:

  • 200 OK
  • Connection: keep-alive
  • Date: Wed, 03 Jun 2020 03:22:12 GMT
  • Content-Type: application/json; encoding=utf-8
  • Content-Length: 27
{
    "errcode": 0, 
    "errmsg": "ok"
}

提示:

Request successful

自定义菜单: 自定义菜单查询接口 /menu/get

请求地址:

https://api.weixin.qq.com/cgi-bin/menu/get?access_token=33_F6G8WyEGl7y9Z_SoeXyqtHKi83eRwG3Km_RLqKd4FnehqKhIcvCwiCvbl2lhcRG1wfXFUO83w1Xfqls5Wj_ns6WK-6Olv1jzIK2whK8kKwwdXt70dW3FtFZA1d_Rgcu4fkKYOl6nrQjBBsIlEAPbAFALHW

返回结果:

  • 200 OK
  • Connection: keep-alive
  • Date: Wed, 03 Jun 2020 03:27:51 GMT
  • Content-Type: application/json; encoding=utf-8
  • Content-Length: 292
{
    "menu": {
        "button": [
            {
                "type": "click", 
                "name": "今日歌曲", 
                "key": "V1001_TODAY_MUSIC", 
                "sub_button": [ ]
            }, 
            {
                "name": "菜单", 
                "sub_button": [
                    {
                        "type": "view", 
                        "name": "搜索", 
                        "url": "http://www.soso.com/", 
                        "sub_button": [ ]
                    }, 
                    {
                        "type": "click", 
                        "name": "赞一下我们", 
                        "key": "V1001_GOOD", 
                        "sub_button": [ ]
                    }
                ]
            }
        ]
    }
}


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

1 个回答

登录 后发表内容
问题标签