微信公众号自定义菜单报错
微信公众号创建自定义菜单接口,我自己调用老是返回{“errcode”:40016,“errmsg”:“invalid button size hint: [xLSPUA05931976]”},但是把数据复制到接口测试工具调用就正常了,谁知道是什么原因?我用的是python,数据如下:
data = {
"button": [
{
"type": "click",
"name": u"今日歌曲",
"key": "v1001_today_music"
},
{
"name": u"菜单",
"sub_button": [
{
"type": "pic_sysphoto",
"name": u"系统拍照发图",
"key": "rselfmenu_1_0",
},
{
"type": "pic_photo_or_album",
"name": u"拍照或者相册发图",
"key": "rselfmenu_1_1",
},
{
"type": "pic_weixin",
"name": u"微信相册发图",
"key": "rselfmenu_1_2",
}
]
},
{
"name": u"发送位置",
"type": "location_select",
"key": "rselfmenu_2_0"
},
]
}