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

版权声明:本文为博主原创文章,欢迎关注公众号【侠梦的开发笔记】获取更多笔记 https://blog.csdn.net/u012811805/article/details/53943325

查询接口

200 OK
Connection: close
Date: Fri, 30 Dec 2016 07:02:32 GMT
Content-Type: application/json; encoding=utf-8
Content-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": [ ]
                }
            ]
        }
    ]
}
展开阅读全文

没有更多推荐了,返回首页