保存菜单入参:
{"button":[{"name":"菜单名称","children":[{"name":"子菜单名称","reply":{"type":"text","accountId":"wxcdf335c15b48379b"},"appId":"wxcdf335c15b48379b","menuKey":"fff","type":"view","url":"https://zj.ukzhicai.com/"}],"reply":{"type":"text","accountId":"wxcdf335c15b48379b"},"appId":"wxcdf335c15b48379b","menuKey":"aaa","type":"view","repName":"","repMediaId":"","media_id":"","repUrl":"","content":"","repDesc":"","repType":"text","repContent":"234","url":"https://zj.ukzhicai.com/"}]}
保存成功后结果:
{
"menu": {
"button": [
{
"type": "view",
"name": "菜单名称",
"url": "https://zj.ukzhicai.com/",
"sub_button": [ ]
}
]
}
}子菜单没有了
你的请求参数是错误的,请参考文档修改:https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html