收藏
回答

自定义菜单包含小程序时个性化菜单推送接口失败?

公众号后台配置自定义菜单时,如果菜单是小程序,现在是直接选择即可,界面上已经没有url这个属性框了,但是/cgi-bin/menu/addconditional?access_token=ACCESS_TOKEN这个接口推送自定义菜单时小程序又必须传url属性,不传或放空会报errcode:40027,“errmsg“:“invalid sub button url size rid,这个url现在接口上是要传什么值

回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    2023-04-04

    你好,麻烦提供下完整的请求包,回包,APPID,请求时间点和返回的rid

    2023-04-04
    有用
    回复 1
    • 小康
      小康
      2023-04-04
      请求时间:2023-04-04 14:20:19<br />请求包:{"button":[{"name":"微官宣","sub_button":[{"name":"学习专栏","type":"view","url":"http:\/\/mp.weixin.qq.com\/mp\/homepage?__biz=MzIzODUwODYwMg==&hid=2&sn=3b5571b11cd4c2280be87dde19ecca96&scene=18#wechat_redirect"},{"name":"宣传片","type":"view","url":"https:\/\/mp.weixin.qq.com\/s?__biz=MzIzODUwODYwMg==&mid=2247516987&idx=1&sn=fae163e66769be48a3fd827076542108&chksm=e93a8c6ede4d05789753580be16add49323f6edeb5f9d345d2a281c2b1fd21f76dfc44089d0f&token=899652613&lang=zh_CN&scene=18#rd"},{"name":"五大国保","type":"view","url":"https:\/\/mp.weixin.qq.com\/s\/ViDmAnYMKp3btUl0ZBs1MQ"}]},{"name":"微互动","sub_button":[{"name":"清明云祭扫","type":"view","url":"https:\/\/lps.eqxiul.com\/ls\/zFb8yGIC?bt=yxy&eip=true"}]},{"name":"终身教育","sub_button":[{"pagepath":"\/packageG\/newDiy\/newDiy?page_id=2259","appid":"wx75b19f0e1491d213","name":"学习资讯","type":"miniprogram","url":""},{"pagepath":"\/packageG\/newDiy\/newDiy?page_id=2246","appid":"wx75b19f0e1491d213","name":"全民教育","type":"miniprogram","url":""},{"pagepath":"\/packageG\/newDiy\/newDiy?page_id=2239","appid":"wx75b19f0e1491d213","name":"老年教育","type":"miniprogram","url":""}]}]}<br />回包:{"errcode":40027,"errmsg":"invalid sub button url size rid: 642bc1a5-40506b7f-01bf12fd"}<br />APPID:wxa69dac86fb8462a4
      2023-04-04
      回复
登录 后发表内容
问题标签