收藏
回答

调用创建自定义菜单接口报错40120:无效的按钮类型?

参数:

{
    "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 个回答

  • 蓝色咖啡
    蓝色咖啡
    07-01

    调用的接口地址是:

    https://api.weixin.qq.com/cgi-bin/menu/create?access_token=
    
    07-01
    有用
    回复 1
    • 邪心
      邪心
      08-04
      我也是这个问题,昨天下午好了一会,现在又不行了
      08-04
      回复
登录 后发表内容
问题标签