请求的格式是:
{"button":[{"type":"click","name":"开发","sub_button":[{"type":"view","name":"开源文档1.0","url":"https://www.baidu.com/"},{"type":"view","name":"开发工具包1.0"},{"type":"media_id","name":"开发项目3.0","media_id":"aCpLWXEKVO0Cz4135snn3Cm5EWxLqHy4lBy4vGB2f0E"},{"type":"click","name":"开发语音包1.0"}]},{"type":"click","name":"了解更多"},{"type":"click","name":"测试","sub_button":[{"type":"view","name":"测试一下","url":"https://www.baidu.com/"}]}]}
可以核对一下官方给的示例,有子菜单sub_button的不带type属性试一试,
同时 type为click的时候:记得带上key值;建议仔细看看官方提供的文档