- 获取成功发布列表无法获取到数据?
appId: wxf6aca32a3c774971 https://api.weixin.qq.com/cgi-bin/freepublish/batchget接口,查询不到所有的发表记录,为什么呢?公众号后台发表记录有近200条,但是只能查到40多条数据。 [图片]
07-30 - 微信推送的密文解密失败?
jdk版本:1.8 commons-codec版本:1.9 遇到两个问题: 第一个问题: 如果依赖的commons-codec版本为1.14,构建WXBizMsgCrypt时直接报错: 这一行: aesKey = Base64.decodeBase64(encodingAesKey + "="); Exception in thread "main" java.lang.IllegalArgumentException: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value. Expected the discarded bits to be zero. at org.apache.commons.codec.binary.Base64.validateCharacter(Base64.java:803) at org.apache.commons.codec.binary.Base64.decode(Base64.java:482) at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:481) at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:465 改成1.9就不报错了 第二个问题:改成1.9之后,验签没问题了,但是解密微信推送的密文时又报错了: 这一行: cipher.init(Cipher.DECRYPT_MODE, key_spec, iv); java.security.InvalidKeyException: Illegal key size at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) at javax.crypto.Cipher.implInit(Cipher.java:805) at javax.crypto.Cipher.chooseProvider(Cipher.java:864) at javax.crypto.Cipher.init(Cipher.java:1396) at javax.crypto.Cipher.init(Cipher.java:1327)
05-24