- JSSDK onMenuShareAppMessage这个接口无效?
[图片] 初始化都是成功的 [图片] 调用这个onMenuShareAppMessage接口,没反应,也没有出错
10-25 - 解密真实姓名或银行卡号出错?
这个接口https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay_yhk.php?chapter=25_2 证书已经下载,公钥已经转PKCS#8 提示:解密真实姓名或银行卡号出错 这要怎么解决,调试了2天 下面是加密代码: public static PublicKey getPublicKey(String publicKeyPath) { try { String key = new String(Files.readAllBytes(Paths.get(publicKeyPath)), "utf-8"); String publicKey = key .replace("-----BEGIN PUBLIC KEY-----", "") .replace("-----END PUBLIC KEY-----", "") .replaceAll("\\s+", ""); KeyFactory kf = KeyFactory.getInstance("RSA"); return kf.generatePublic(new X509EncodedKeySpec(Base64.getDecoder().decode(publicKey))); } catch (Exception ex) { ex.printStackTrace(); return null; } } //公钥加密 public static String encrypt(String content, PublicKey publicKey) { try { // RSA/ECB/OAEPWithSHA-1AndMGF1Padding 微信支付 打款到银行卡 Cipher cipher = Cipher.getInstance("RSA/ECB/OAEPWITHSHA-1ANDMGF1PADDING");//java默认"RSA"="RSA/ECB/PKCS1Padding" cipher.init(Cipher.ENCRYPT_MODE, publicKey); byte[] output = cipher.doFinal(content.getBytes()); BASE64Encoder encoder = new BASE64Encoder(); return encoder.encode(output); } catch (Exception e) { e.printStackTrace(); } return null; }
10-23 - do not support getSystemInfo?
Current Wechat version do not support asynchronous getSystemInfo. "wx.getSystemInfoAsync" will be finished by synchronous implementation. 没有使用getSystemInfo,只用了wx.getSystemInfoSync()。重新编译的时候卡着了,无法渲染页面 [图片]
2023-09-14 - 为什么说网页有安全问题呢?
只是一个印刷行业报价下单网站,公众号和小程序都的业务域名之类的都设置好了,也备案了,也使用https传输请问是哪里出了问题呢 [图片]
2023-08-24