收藏
回答

公众号自定义子菜单保存后为什么只有主菜单?

保存菜单入参:

{"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": [ ]
            }
        ]
    }
}子菜单没有了
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容