@官方 您好,我们这有个这样的需求,对于微信公众号如果授权给别的第三方平台创建完菜单之后,当再次授权到我们的三方平台时在查询菜单时对于click、scancode_push、scancode_waitmsg、pic_sysphoto、pic_photo_or_album、 pic_weixin、location_select等类型只能查询到key以及name和type,这三个字段,这样的的话即使同步过来也不清楚这些菜单是做什么操作,后续推送事件接收之后就不能处理对应菜单,所以对于这几种类型菜单同步就意义不大了,提个需求就是能不能返回更多字段,例如有两个菜单,菜单1是回复文字,将文字内容返回,菜单2是发送图文,并且有标识为图文,将图文的mediaId返回,这样对于我们以及其他开发者再做这一块菜单同步的时候就能很清楚每一个菜单都是什么用处,否则对于运营者而言只能重新创建菜单,过程繁琐很多。
如下为使用接口创建菜单后查询菜单微信返回菜单数据:
{
“is_menu_open”: 1,
“selfmenu_info”: {
“button”: [
{
“name”: “菜单1”,
“sub_button”: {
“list”: [
{
“type”: “click”,
“name”: “文字”,
“key”: “fb0fd449bccb4d80897918a0ff1bdab7”
},
{
“type”: “click”,
“name”: “图片”,
“key”: “b5b9b2d383dc42ffbf4106045b21f1c4”
},
{
“type”: “click”,
“name”: “语音”,
“key”: “63e6000222da425c998469697d6cb00d”
},
{
“type”: “click”,
“name”: “视频”,
“key”: “bac9a21ae5c44168afa6bf8c10e9e0ab”
}
]
}
},
{
“name”: “菜单2”,
“sub_button”: {
“list”: [
{
“type”: “click”,
“name”: “图文”,
“key”: “120f2428e5984334a300caa87368e114”
},
{
“type”: “view”,
“name”: “跳转连接”,
“url”: “http://www.baidu.com”
},
{
“type”: “click”,
“name”: “MP4视频”,
“key”: “0b7c93e07d8b4e6892572e725cae0388”
},
{
“type”: “view”,
“name”: “视频链接”,
}
]
}
},
{
“name”: “菜单3”,
“sub_button”: {
“list”: [
{
“type”: “click”,
“name”: “文字”,
“key”: “8e1adb2d50cb4203a02dffffa6987fc5”
},
{
“type”: “click”,
“name”: “语音”,
“key”: “f239619628a44e5bbce716eaeea39872”
},
{
“type”: “click”,
“name”: “图片”,
“key”: “960e97be2b8c4f7fa71a72e96dad6770”
},
{
“type”: “click”,
“name”: “后台视频”,
“key”: “30bb8ba5a0fe48349249693b4eb26bbf”
},
{
“type”: “miniprogram”,
“name”: “小程序”,
“url”: “http://baidu.com”,
“appid”: “wxfd9c1b1e1384cef9”,
“pagepath”: “pages/scan-car/car-serial-list”
}
]
}
}
]
}
}