{"errcode":40017,"errmsg":"invalid button type hint: [I8nq_a0783sha1]"}
在开发微信公众号 添加菜单时遇到问题
一直提示:{"errcode":40017,"errmsg":"invalid button type hint: [I8nq_a0783sha1]"}
原因是:各个Button类中,属性type没有对应getType()方法,导致在生成的json字符串中就没有type
{"button":[{"name":"点击","key":"11"},{"name":"跳转","url":"http://www.baidu.com"}]} 错误的
{"button":[{"name":"点击","type":"click","key":"1"},{"name":"跳转","type":"view","url":"http://www.baidu.com"}]} 正确的