♻️ 过时语义不清晰的 decrypt 方法

This commit is contained in:
Scruel Tao
2021-12-08 14:47:49 +08:00
committed by GitHub
parent fcb599b76e
commit f2ac81ef5e
6 changed files with 8 additions and 6 deletions

View File

@ -463,7 +463,7 @@ public class WxCpXmlMessage implements Serializable {
public static WxCpXmlMessage fromEncryptedXml(String encryptedXml, WxCpConfigStorage wxCpConfigStorage,
String timestamp, String nonce, String msgSignature) {
WxCpCryptUtil cryptUtil = new WxCpCryptUtil(wxCpConfigStorage);
String plainText = cryptUtil.decrypt(msgSignature, timestamp, nonce, encryptedXml);
String plainText = cryptUtil.decryptXml(msgSignature, timestamp, nonce, encryptedXml);
log.debug("解密后的原始xml消息内容{}", plainText);
return fromXml(plainText);
}