https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html
按此操作创建自定义菜单,总是返回
{
"errcode": 40027,
"errmsg": "invalid sub button url size hint: [I3ezna0299hb24]"
}
但请求的url长度未超过文档描述的1024,为何还会报错?
请求body为:
{
"button": [
{
"name": "下载APP",
"sub_button": [
{
"type": "view",
"name": "主下载地址",
"url": "https://wx.baidu.cn/app/"
},
{
"type": "view",
"name": "备用下载地址",
"key": "https://m-ios.baidu.cn/fy2w"
}
]
}
]
}
{ "button": [ { "name": "下载APP", "sub_button": [ { "type": "view", "name": "主下载地址", "url": "https://wx.baidu.cn/app/" }, { "type": "view", "name": "备用下载地址", "url": "https://m-ios.baidu.cn/fy2w" } ] } ] }
"name": "备用下载地址"
这个按钮的url键值错了