收藏
回答

创建公众号自定义菜单报错,总是提示40017 invalid button type?

已经拼接好的JSON格式菜单,使用微信公众号自定义菜单接口老是提示

{"errcode":40017,"errmsg":"invalid button type hint: [ucNo701541892]"}

在网上找了一圈,都没有找到合适的解决办法

贴上菜单的字符串,请大家帮忙我看看 菜单哪里有问题?

{

"button": [{

"type": "view",

"name": "汤包商城",

"url": "https:\/\/weidian.com\/item.html"

}, {

"name": "售后服务",

"sub_button": {

"list": [{

"type": "view",

"name": "物流查询",

"url": "https:\/\/m.kuaidi100.com\/"

}, {

"type": "news",

"name": "售后客服",

"value": "3sujX95h34Z_aPByB5yH7gqFdkt69TVPXT6-3QL4GtE",

"news_info": {

"list": [{

"title": "售后服务",

"author": "",

"digest": "售后七天无理由退换货我们为您提供产品销售的服务,您可以按本规则对已购买的商品进行退换货处理。具体为(以签收日",

"show_cover": 0,

"cover_url": "http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/t86EevMoWBXHmJDIiasiaduPAmtecESK5AkibydicjDsVdmnKVxVwWG0XM9OF0UuQXcY37Iiau7p3ribMSiapCShWnLEQ\/0?wx_fmt=jpeg",

"content_url": "http:\/\/mp.weixin.qq.com\/s",

"source_url": ""

}]

}

}, {

"type": "view",

"name": "在线客服",

"url": "https:\/\/im.weidian.com\/chat\/"

}, {

"type": "view",

"name": "订单查询",

"url": "https:\/\/my.weidian.com\/order\/list.phpil"

}, {

"type": "news",

"name": "退货流程",

"value": "3sujX95h34Z_aPByB5yH7tDdgDQAQd_Fh_mB_uYem5s",

"news_info": {

"list": [{

"title": "退货流程",

"author": "",

"digest": "STEP第一步:根据您想要处理的售后类别,联系我们的在线客服,说明您的来意。STEP第二步:根据客服提供给您",

"show_cover": 0,

"cover_url": "http:\/\/mmbiz.qpic.cn\/mmbiz_jpg\/t86EevMoWBXHmJDIiasiaduPAmtecESK5Ag7iaXNO5kQWKjAbNhN5X9NRtXzt6w5UEQqcwfQ8f4EXg3XEhHur06qA\/0?wx_fmt=jpeg",

"content_url": "http:\/\/mp.weixin.qq.com\/s?__biz=MzI4MTMwMDExMw==&mid=100000006&idx=1&sn=48cec8aa5942349e5e290188913a726b&chksm=6baa1cf85cdd95eeea7c8ea9191eac45f4864c054f8abc49c654e5ae27330c10ad8467b03e77#rd",

"source_url": ""

}]

}

}]

}

}, {

"type": "text",

"name": "关于我们",

"value": "欢迎关注我们!"

}]

}


------------------------------------------------------------------------------------------------------------------------------------------

用微信开发者文档中 get_current_selfmenu_info 返回的菜单,只是修改url连接,is_menu_open和selfmenu_info这两个参数 在创建菜单接口不需要提交,所以移除了。


---------------------------------------------------------------------------------结贴----------------------------------------------------------------------------

1.微信后台配置的菜单 返回后 并不能 通过API接口来创建菜单

2.API自定义菜单接口只允许 特定的按钮类型,要仔细阅读文档,虽然不是很好理解,可能需要很多遍

3.感谢 楼下大神解惑。

最后一次编辑于  2020-04-22
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签