请求解密修改
This commit is contained in:
parent
5cd3b43c75
commit
7bd6cf497e
|
|
@ -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("请求参数不正确");
|
||||
|
|
|
|||
Loading…
Reference in New Issue