收藏
回答

服务号创建菜单一直报错40016?

{

    "button": [

        {

            "name": "A",

            "sub_button": [

                {

                    "name": "A101",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "101"

                },

                {

                    "name": "A102",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "102"

                }

            ],

            "type": ""

        },

        {

            "name": "B",

            "sub_button": [

                {

                    "name": "B101",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "201"

                },

                {

                    "name": "B102",

                    "sub_button": [ ],

                    "type": "click",

                    "key": "202"

                }

            ],

            "type": ""

        },

        {

            "name": "C",

            "sub_button": [

                {

                    "name": "C1",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "http://xxx.xxx.xxx"

                },

                {

                    "name": "C2",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "https://xxx.xxx.xxx"

                },

                {

                    "name": "C3",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "http://xxx.xxx.xxx"

                },

                {

                    "name": "C4",

                    "sub_button": [ ],

                    "type": "view",

                    "url": "http://xxx.xxx.xxx/"

                }

            ],

            "type": ""

        }

    ]

}


运行代码,返回结果如上(其中url地址在代码中可以实际访问),结果就报错{"errcode":40016,"errmsg":"invalid button size hint: [mYuFNa06481892]"},查了官方文档,40016:不合法的按钮个数,但是我吧上班的json数据复制到微信公众平台接口调试工具,直接在线创建菜单,就能正常创建,如下图,求解?

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

1 个回答

  • ······
    ······
    03-16

    找到问题,已解决

    03-16
    赞同
    回复
登录 后发表内容
问题标签