多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
**简要描述:** - 保存菜单 **请求URL:** 保存菜单 - `/adminapi/wechat.official_account_menu/save` 保存并发布菜单 - `/adminapi/wechat.official_account_menu/saveAndPublish` **请求方式:** - POST **参数说明:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |name|是|string |菜单名称 | |type|是|string |菜单类型 click-关键字 view-跳转网页链接 miniprogram- 小程序| |key|否|string |关键字 `菜单类型为click必填`| |url|否|string |网页链接 `菜单类型为view或miniprogram必填`| |appid|否|string |appid `菜单类型为miniprogram必填`| |pagepath|否|string |小程序路径 `菜单类型为miniprogram必填`| **参数示例** ``` { "menu": [ { "name": "公司产品", "type": "click", "key": "product", "sub_button": [ { "name": "LikeShop", "type": "click", "key": "ls" }, { "name": "LikeMall", "type": "view", "url": "https://lm.html" }, { "name": "官网", "type": "miniprogram", "url": "likeshop.html", "appid": "8888", "pagepath": "https://ls/ls.html" } ] }, { "name": "活动", "type": "view", "url": "https://activity.html" } ] } ``` **返回示例** ``` { "code": 1, "show": 0, "msg": "保存成功", "data": [] } ```