{
"errcode": 40027,
"errmsg": "invalid sub button url size rid: 5ff72350-7a326649-612541df"
}
调用创建自定义接口菜单 总是报错
请求body 如下
{
"button": [
{
"name": "转载&活动",
"sub_button": [
{
"name": "人物志",
"type": "view",
"url": "https://mp.weixin.qq.com/mp/homepage?__biz=MzA5MzY4NTQwMA==&hid=11&sn=892f5ed5a054edaf4657ff4213634831"
},
{
"name": "会员购买",
"type": "view",
"url": "https://mall.csdn.net/vip?utm_source=ebook_cxrs"
},
{
"name": "商务合作",
"type": "view",
"url": "https://w.url.cn/s/Arglya8"
},
{
"name": "转载授权",
"type": "view",
"url": "https://mp.weixin.qq.com/s/JEbFIZPI0vj6yTL59cc4_Q"
}
]
},
{
"name": "加入VIP会员",
"sub_button": [
{
"name": "电子书免费读",
"type": "view",
"url": "https://mall.csdn.net/vip?utm_source=ebook_cxrs"
},
{
"name": "课程免费兑",
"type": "view",
"url": "https://mall.csdn.net/vip?utm_source=ebook_cxrs"
},
{
"name": "资源免费下",
"type": "view",
"url": "https://mall.csdn.net/vip?utm_source=ebook_cxrs"
}
]
},
{
"name": "CSDN",
"sub_button": [
{
"name": "资源搜索",
"type": "miniprogram",
"appid": "wx2115aba2ed1f96b9",
"pagepath": "pages/search/search.html?hotWord",
"url": ""
},
{
"name": "福利大爆炸",
"type": "miniprogram",
"appid": "wx94ba57502711952f",
"pagepath": "/pages/home/index",
"url": "https://blink.csdn.net"
},
{
"name": "下载APP",
"type": "view",
"url": "https://a.app.qq.com/dom/micro/open.jsp?pkgname=net.csdn.csdnplus&fromcase=40003"
},
{
"name": "个人中心",
"type": "view",
"url": "https://passport.csdn.net/account/login?from=https://my.csdn.net"
}
]
}
]
}
你好,不合法的子菜单按钮 URL 长度。可以参考下该帖:公众号用API创建自定义菜单总是返回40027错误
https://developers.weixin.qq.com/community/develop/doc/00064a2c7d41d8f9bc8a54fb151c00