微信接口创建菜单40016,Invalid button size

来源:互联网 发布:维普数据库官网 编辑:程序博客网 时间:2024/06/13 18:56

查询接口

  • 创建菜单时参考文档,最好不要直接复制查询菜单接口的响应:
    https://mp.weixin.qq.com/wiki/10/0234e39a2025342c17a7d23595c6b40a.html

  • 调用菜单查询接口时,返回如下

200 OKConnection: closeDate: Fri, 30 Dec 2016 07:02:32 GMTContent-Type: application/json; encoding=utf-8Content-Length: 349{    "menu": {        "button": [            {                "name": "一级菜单",                 "sub_button": [                    {                        "type": "view",                         "name": "用户",                         "url": "xxx",                         "sub_button": [ ]                    }                ]            }        ]    }}
  • 最好不要直接把这个结果做修改,然后调用创建菜单接口,一定要注意最外层没有menu

创建接口

{    "button": [        {            "name": "hyq",             "sub_button": [                {                    "type": "view",                     "name": "用户",                     "url": "xxx",                     "sub_button": [ ]                }            ]        }    ]}
0 0
原创粉丝点击