https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html
我公众号返回的菜单列表如下:菜单类型type有news,img,也有video这些,而官网提及的12种自定义类型,为什么没有介绍这几种?
{
"button": [
{
"type": null,
"name": "测试菜单",
"key": null,
"value": null,
"url": null,
"news_info": null,
"sub_button": {
"list": [
{
"type": "news",
"name": "发送图文消息",
"key": null,
"value": "6l4seE8tFUr5Ri9AhrDIFmK2PsA5cq_pr5dQWZVHuSViBcQIQ6EyWPo9yq7OvlLf",
"url": null,
"news_info": {
"list": [
{
"title": "谢谢关注amia!",
"author": "",
"digest": "",
"show_cover": 0,
"cover_url": "",
"content_url": "http://mp.weixin.qq.com/s?__biz=MzkwMzU0Njg0Nw==&mid=2247483652&idx=1&sn=b39a0416f7270484988872397ad6f0b6&chksm=c095d3b4f7e25aa2693c56da22c982e85b9e66020eb83abb1738f608f38492c1a1f48a215bee#rd",
"source_url": ""
}
]
},
"sub_button": null
},
{
"type": "img",
"name": "发送图片",
"key": null,
"value": "qBZOI6pfikcanfZc0mcoW0_0hdvam-JUydToqiUvOnR7i4VhcA7GuKYrnhfi-LRK",
"url": null,
"news_info": null,
"sub_button": null
},
{
"type": "view",
"name": "跳转网页",
"key": null,
"value": null,
"url": "http://mp.weixin.qq.com/s?__biz=MzkwMzU0Njg0Nw==&mid=2247483650&idx=1&sn=d1d7f4a584e79b17290fb7909a9a1099&chksm=c095d3b2f7e25aa4ed8336f38c999a1803596735f315f6fba15c41d0d0e5abd6eeb52d2968b5&scene=18#wechat_redirect",
"news_info": null,
"sub_button": null
}
]
}
},
{
"type": "video",
"name": "发送视频",
"key": null,
"value": "http://mp.weixin.qq.com/mp/mp/video?__biz=MzkwMzU0Njg0Nw==&mid=100000010&sn=679ad054400cc661c07f248110cc3e3f&vid=wxv_3080650063429517322&idx=1&vidsn=4b2bebedda463d3bfff83a302a146851&fromid=1#rd",
"url": null,
"news_info": null,
"sub_button": null
}
]
}