- 微信退款,返回SUCCESS还是一直收到退款通知
//成功应答 response.setStatus(200); map.put("code", "SUCCESS"); map.put("message", "成功"); return gson.toJson(map);
2023-07-14 - 证书和回调报文解密报错?
将获取到的微信平台证书报文 获取响应中数据 JsonParser JsonParser parse = pa JsonParser(); JsonObject json = (JsonObject) parse.parse(pcs); rse = JsonParser(); J JsonObject encryptCertificate//创建json解析n(ew//json字符串解析,获取resul).getAsJsonObject(); t节点get"en crypt_ associatedData = encryptCertificate.cer(tificate"//获取节点的数).to值Strin(); String ciphgreext = encryptCertificate.get(t"associated).to_data"(); StrinS wxnonct = encryprCertificate.get(ingget").tocipher(); 使用官方的解密示例String(cipher.doFinal(Base64.getDecoder().decode(ciphertext)), text"Stringget"no) parse.parse(pcs); JsonObject encryptCertificate = json.().getAsJsonObject(); associatedData = encryptCertificate.().toString(); ciphertext = encryptCertificate.().toString(); wxnonce = encryptCertificate.().toString(); 使用官方的解密示例(cipher.doFinal(Base64.getDecoder().decode(ciphertext)), 报这个错误,说有非法数据java.lang.IllegalArgumentException: Illegal base64 character 22
2022-11-25