调用自定义创建菜单的接口:https://api.weixin.qq.com/cgi-bin/menu/create?access_token=xxx
请求参数:
{
"is_menu_open": 1,
"selfmenu_info": {
"button": [
{
"name": "测试服务",
"sub_button": {
"list": [
{
"type": "view",
"name": "测试1",
"url": "https://xxxxxx.xxxxx.com/#/pages/brand/search/index?pd=xxx&vn=xxx&xxxxxx_channel=xx&xx_xxx=xxx_xxx"
},
{
"type": "view",
"name": "测试2",
"url": "https://xxxxxx.xxxxx.com/xxx/template/#/pages/xxxxxx/home/index?xx_xxx=xx_weixin"
},
{
"type": "view",
"name": "测试3",
"url": "https://xxxxxx.xxxxx.com/xxx/template/#/pages/xxxXxxxx/channel/index?"
}
]
}
},
{
"type": "view",
"name": "我的测试",
"url": "https://xxxxxx.xxxxx.com/xxx/template/#/pages/brand-sub/xxxxxxxx/index?title=我的测试"
},
{
"name": "测试中心",
"sub_button": {
"list": [
{
"type": "view",
"name": "我的测试1",
"url": "https://xxxxxx.xxxxx.com/xxx/#/pages/xx/list/index?pd=xxx&&xx=&xxx=list&title=我的测试1&xx_xxx=xx_xxx"
},
{
"type": "view",
"name": "我的测试2",
"url": "https://xxxxxx.xxxxx.com/xxx/template/#/pages/xxxxxx/orderlist/index?xx_xxx=xx_weixin&title=我的测试2"
},
{
"type": "view",
"name": "我的测试3",
"url": "https://xxxxxx.xxxxx.com/xxx/template/#/pages/xx-sub/medstorerplistpage/index?xxx=xxxstorerplistpage&title=我的测试3"
}
]
}
}
]
}
}
接口请求返回结果
{
"errcode": 40016,
"errmsg": "invalid button size rid: 624ff94a-5699593f-757df01b"
}
请教是因为什么原因?
你好,检查你的相关按钮设置是否符合规范呢?