- 开发者帐号下存在同主体的网页应用,且已经授权登录过网页应用未获取UnionId
开发者帐号下存在同主体的网页应用,并且该用户已经授权登录过该网页应用。 wx.login + [代码]code2Session[代码] 未获取到该用户 UnionID
2019-09-16 - 小程序手机号解密 偶发性解密异常?
javax.crypto.BadPaddingException: Given final block not properly padded 后台解密 偶尔解密失败 重新调用都是成功的 byte[] encData = Base64.decodeBase64(encryptedData); byte[] ivStr = Base64.decodeBase64(iv); byte[] key = Base64.decodeBase64(sessionKey); AlgorithmParameterSpec ivSpec = new IvParameterSpec(ivStr); Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); SecretKeySpec keySpec = new SecretKeySpec(key, "AES"); cipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec); String dataResult = new String(cipher.doFinal(encData),"UTF-8");
2019-08-05 - 小程序HTTPS发送模版消息 48001
https://api.weixin.qq.com/cgi-bin/message/wxopen/template/send?access_token=23_WQeyLQ_DmzTFgziSSjMXYqgfWGxomVhEZ7nfvO1RprH5jWZu1FVHKuAiPCKxqxagwKxZ2IInWsi4jQ_CrlPY2Hm7y5SpuPJT7G_Zb81ugrCfkgJY8recBbK2pB9ex0460XSrNZelQEZum_UsKSSaAJAEMM&touser=ozOPT5FcSDM7VH52kUHBeG27YAUc&template_id=4yvUSAsrgeVVOmaxqEvVNEaNPTtvvhR5RPLav4vp7TI&form_id=ea11ad55de98415ca6ca4f984a6276b2&data={ "keyword1": { "value": "339208499" }, "keyword2": { "value": "HY962540" }, "keyword3": { "value": "无限期" } } 接口及参数 公众号 权限也开了 消息配置回调也加上了
2019-07-15