我也是,后来解决了吗,如何解决的呀
创建自定义菜单,返回invalid button type 40017?array(2) { ["errcode"] => int(40017) ["errmsg"] => string(51) "invalid button type rid: 62d75fc1-2d8233bb-68ffd1a5" } 请求参数 { "button": [ { "name": "菜单1", "type": "view", "url": "http://mp.weixin.qq.com" }, { "name": "菜单2", "sub_button": [ { "name": "二级菜单", "type": "click", "key": "V1001_GOOD" } ] } ] } 使用微信公众平台接口调试工具 可以添加成功,但是请求接口就不行
07-05 "errcode": 40017, "errmsg": "invalid button type rid: 66876ac6-73e885eb-7f1a90c3" 接口返回信息如上,麻烦排查一下什么原因,请求的是创建接口,url:https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN
创建菜单接口报错errcode:40017,errmsg:invalid button type?public JSONObject createCurrentMenu(MenuDTO menuDTO) { Map<String, String> map = new HashMap<>(); String accessToken = redisCache.getCacheObject(REDIS_WX_OFFICIAL_ACCESS_TOKEN); map.put(ACCESS_TOKEN, accessToken); String url = genUrl(URL_CREATE_MENU, map); String object = JSONObject.toJSONString(menuDTO); log.info("object: {}", object); JSONObject result = restTemplate.postForObject(url, object, JSONObject.class); log.info("创建微信公众号菜单返回结果:{}", result); return result; } 请求的接口url:"https://api.weixin.qq.com/cgi-bin/menu/create";
07-05