自定义菜单 /创建接口 : https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN
之前调用都正常,最近想修改按钮调用的时候报错
errcode:40024 ; errmsg:invalid sub button type ?
请求数据如下(数据已脱敏)
{"button":[{"name":"nameA","sub_button":[{"name":"nameA-1","type":"view","url":"href","bIndex":"1-1"},{"name":"nameA-2","type":"view","url":"href","bIndex":"1-2"},{"name":"nameA-3","type":"view","url":"href","bIndex":"1-3"},{"name":"nameA-4","type":"view","url":"href","bIndex":"1-4"},{"name":"nameA-5","type":"view","url":"href","bIndex":"1-5"}],"bIndex":"1"},{"name":"nameB","sub_button":[{"name":"nameB-1","type":"view","url":"href","bIndex":"2-1"},{"name":"nameB-2","type":"view","url":"href","bIndex":"2-2"},{"name":"nameB-3","type":"view","url":"href","bIndex":"2-3"},{"name":"nameB-4","type":"view","url":"href","bIndex":"2-4"},{"name":"nameB-5","type":"view","url":"href","bIndex":"2-5"}],"bIndex":"2"},{"name":"nameC","sub_button":[{"name":"nameC-1","type":"view","url":"href","bIndex":"3-1"},{"name":"nameC-2","type":"view","url":"href","bIndex":"3-2"},{"name":"nameC-3","type":"view","url":"href","bIndex":"3-3"},{"name":"nameC-4","type":"view","url":"href","bIndex":"3-4"},{"news_info":{"list":[{"author":"author","title":"合作互撩","cover_url":"img","show_cover":0,"source_url":"","digest":"欢迎来撩!","content_url":"http://mp.weixin.qq.com"}]},"name":"联系我们","value":"Z_QEksTPnQoG1NJygqPyRFM5Wta1i59PtWofKsTPIr","type":"news","bIndex":"3-5"}],"bIndex":"3"}]}
目前API创建自定义菜单没有news类型:https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html 。
------
不知道你贴出来这个脱敏的请求参数格式是不是调用接口时的格式,有些参数文档里面都是没有的,如bIndex、news_info。