请求解密修改

This commit is contained in:
cwchen 2025-09-24 10:25:18 +08:00
parent 5cd3b43c75
commit 7bd6cf497e
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ public class RequestCoverFilter implements Filter {
throw new CaptchaException("请求参数不正确");
}
String calculatedHash = Sm3Util.encrypt(query);
log.info("计算出的哈希值: {}", calculatedHash);
log.info("提供的哈希值: {}", providedHmac);
// log.info("计算出的哈希值: {}", calculatedHash);
// log.info("提供的哈希值: {}", providedHmac);
if (!calculatedHash.equals(providedHmac)) {
log.error("参数完整性校验失败");
throw new CaptchaException("请求参数不正确");