收藏
回答

微信公众号创建菜单,报"errcode":40027,"errmsg":"invalid sub ?

请求的格式是:

{"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/"}]}]}

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

1 个回答

  • 沐楠
    沐楠
    2021-04-14

    可以核对一下官方给的示例,有子菜单sub_button的不带type属性试一试,

    同时 type为click的时候:记得带上key值;建议仔细看看官方提供的文档

    2021-04-14
    有用 2
    回复
登录 后发表内容
问题标签