zhangbing609
V2EX  ›  微信

微信 创建自定义菜单的错误“invalid button size"

  •  
  •   zhangbing609 · Jul 8, 2015 · 2735 views
    This topic created in 4033 days ago, the information mentioned may be changed or developed.

    调用自定义菜单接口https://api.weixin.qq.com/cgi-bin/menu/create时,服务器总是返回:

    {"errcode":40016,"errmsg":"invalid button size"},使用的json结构就是官方网站(http://mp.weixin.qq.com/wiki/13/43de8269be54a0a6f64413e4dfa94f39.html)上的demo数据依然如此:

    {
    "button":[
    {

    "type":"click",
    "name":"今日歌曲",
    "key":"V1001_TODAY_MUSIC"
    },
    {
    "name":"菜单",
    "sub_button":[
    {

    "type":"view",
    "name":"搜索",
    "url":"http://www.soso.com/"
    },
    {
    "type":"view",
    "name":"视频",
    "url":"http://v.qq.com/"
    },
    {
    "type":"click",
    "name":"赞一下我们",
    "key":"V1001_GOOD"
    }]
    }]
    }

    如有遇到相似问题的同仁们,请分享下您们解决此问题的经验,非常感谢!

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   937 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:29 · PVG 05:29 · LAX 14:29 · JFK 17:29
    ♥ Do have faith in what you're doing.