- 接收用户关注公众号时,给用户下发欢迎语,经过测试用户收不到公众号下发的消息,这是为什么?
<xml> <Encrypt><![CDATA[CmYKncxk00zn0XenNN1hRiZCcaVZFpakHa6CZnJDpBrqw66Fy33Ag7gLP6T55A2jV8mKI6BUCVg6a31ZhF69xN3SIRYQ+4h4TV8gy7WIqHJeZVpviFhWAKCS00oABit1BoLbBcK3/NZHZcUFCG4wkjhX+hZXqPy/c2FZmTK9SqGnJP0VHidZQq90f0W86t+GECHfJ7Klt7M9/2fCnFaRy+GmBStVMYPN7Puv1FnDal3dOXTzboWaLRWXL28JMNK2CGwoTGINmr0xmbA2H+cPiyHfnqsxYIvNS0dv/W9bNpKGJfdVFiguogSUS/510p455xQuGyeSc+7X0Mw+waSLWxhKWkgNgmOcbm1INOi4Y+PXbLvb9na8rqcXIqqxRQzaPUYE/tb9zQE8Bi+Iy6XLTF0B7bartfvQ/hVptDWAk9v5uOS/8fXNn37UNI0yV8qDNbysIG44CI037juuz1sT7vNWadaSo7OimOPo56+fMO0++tkhBtKIuuAPajmxoN5O1g7tXQXE5nNcIfAmVxiTojHCHBCtv5GUhHcjjIse4ZcU9nzfzyA4dRcJLrFVMt1D2pw1Wmn0Ahm5PgU9eWnKmA==]]> </Encrypt> <MsgSignature><![CDATA[34ff3e015b081e477383da3a19bdbbede7cf5a0f]]></MsgSignature> <TimeStamp>1720415775</TimeStamp> <Nonce><![CDATA[1116466632]]></Nonce> </xml> 以上是我们服务器接收用户关注公众号事件推送时,经过加密之后给微信的回包
07-08 - 创建菜单接口报错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";
05-30