调用创建自定义菜单接口报错40120:无效的按钮类型?
发布于 6 年前 作者 rshi 7781 次浏览 来自 问答

参数:

{
    "button":[
        {
            "name":"人才招聘",
            "sub_button":[
                {
                    "type":"view",
                    "name":"企业招聘",
                    "url":"http://m.wanyuan.ccoo.cn/post/job/"
                },
                {
                    "type":"view",
                    "name":"个人求职",
                    "url":"http://m.wanyuan.ccoo.cn/post/qiuzhi/"
                },
                {
                    "type":"view",
                    "name":"兼职招聘",
                    "url":"http://m.wanyuan.ccoo.cn/post/jianzhi/"
                }
            ]
        },
        {
            "name":"房屋租售",
            "sub_button":[
                {
                    "type":"view",
                    "name":"万源楼盘",
                    "url":"http://m.wanyuan.ccoo.cn/post/xinloupan/"
                },
                {
                    "type":"view",
                    "name":"房屋售买",
                    "url":"http://m.wanyuan.ccoo.cn/post/fangwu/fc_chushou.aspx"
                },
                {
                    "type":"view",
                    "name":"房屋出租",
                    "url":"http://m.wanyuan.ccoo.cn/post/fangwu/fc_chuzu.aspx"
                },
                {
                    "type":"view",
                    "name":"求租住房",
                    "url":"http://m.wanyuan.ccoo.cn/post/fangwu/xq"
                }
            ]
        }
    ]
}

结果:

"errcode":40120,"errmsg":"invalid use sub button type hint: [7GvLGA08410356]"}

哪里出了问题?

1 回复

调用的接口地址是:

https://api.weixin.qq.com/cgi-bin/menu/create?access_token=
回到顶部