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";
你好,麻烦提供下返回的rid
"errcode": 40017,
"errmsg": "invalid button type rid: 66876ac6-73e885eb-7f1a90c3"
接口返回信息如上,麻烦排查一下什么原因,请求的是创建接口,url:https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN