feat:验签调整

This commit is contained in:
苏竹红
2025-11-21 12:41:52 +08:00
parent ea618f0643
commit d74f4a5c19
5 changed files with 13 additions and 55 deletions

View File

@@ -43,6 +43,7 @@ public class RsaSignUtil {
String sign = String.valueOf(params.get("sign"));
params.remove("sign");
String afterSort = objectToSortedString(params);
log.info("排序后的参数:{}", afterSort);
return rsaPublicKeyVerify(afterSort, sign, publicKeyPEM, "SHA256withRSA");
}