自定义修改菜单接口:https://api.weixin.qq.com/cgi-bin/menu/create?access_token=
{"errcode":40026,"errmsg":"invalid sub button key size rid: 66125222-25a720a1-6f23acac"}
参数:
{
"button": [
{
"name": "入驻机构",
"sub_button": [
{
"name": "山西省",
"type": "click",
"value": "测试1\n电话:15603528888\n\n国标中心\n电话:17603508888\n\n宁\n电话:15513238888\n\n 原平\n电话:18636028888\n\n 朔州市\n电话:15603498888\n\n 朔州市有限公司\n电话:13103498888\n\n 朔州市公司\n电话:17634938888\n\n 宁武\n电话:13203508888\n\n \n"
},
{
"name": "内蒙古",
"type": "click",
"value": "测试2\n电话:15598848888\n\n检测技术服务有限公司)\n电话:15047358888\n\n分公司\n电话:13087198888\n\n化验中心\n电话:13284838888\n\n化验中心\n电话:13327068888\n\n检验中心\n电话:13324618888\n\n一号分公司\n电话:15894908888\n\n有限公司\n电话:15560338888\n\n公司\n电话:15548208888\n\n技术服务中心\n电话:15804818888\n\n有限公司\n电话:15560908888\n\n东胜中心\n电话:15384898888\n\n服务中心\n电话:15047128888\n\n服务中心)\n电话:13171498888\n\n\n"
},
{
"name": "陕西省",
"type": "click",
"value": "测试3\n电话:15353868888\n\n验服务中心\n电话:13310928888\n\n化验服务中心\n电话:18191238888\n\n有限公司\n电话:17729288888\n\n榆林中心\n电话:19929348888\n\n技术服务\n电话:15603428888\n\n神木市\n电话:18966968888\n\n有限公司\n电话:15667798888\n\n神木\n电话:19929538888\n\n中心\n电话:15929018888\n\n\n"
},
{
"name": "河北省",
"type": "click",
"value": "\n测试4\n电话:18713068888\n"
}
],
"url": "https://www.baidu.com"
},
{
"name": "服务项目",
"sub_button": [
{
"name": "煤炭检验",
"type": "click",
"value": "基础服务\n检验检测服务:船舶装/卸过程中煤炭的检验"
},
{
"name": "XX培训",
"type": "click",
"value": "tCfRFRR2w7BYuOFL59fjg2TrYlrQHj80onTAA4vFTMdDDDSWWSWS"
},
{
"name": "XX分享",
"type": "click",
"value": "http://mp.weixin.qq.com/mp/mp/video"
}
],
"url": "https://www.baidu.com"
},
{
"pagepath": "pages/home/home",
"appid": "wx33cec106d704xxxx",
"name": "XXXX",
"type": "view",
"url": "https://www.baidu.com",
"sub_button": [
{
"type": "click",
"name": "个人中心",
"url": "https://www.baidu.com ",
"appId": "wx33cec106d704xxxx",
"pagePath": "pages/personal/personal"
}
]
}
]
}