diff --git a/sop-gateway/src/main/java/com/gitee/sop/gateway/controller/ErrorLogController.java b/sop-gateway/src/main/java/com/gitee/sop/gateway/controller/ErrorLogController.java index 5d7670fc..93ab0dc6 100644 --- a/sop-gateway/src/main/java/com/gitee/sop/gateway/controller/ErrorLogController.java +++ b/sop-gateway/src/main/java/com/gitee/sop/gateway/controller/ErrorLogController.java @@ -62,7 +62,10 @@ public class ErrorLogController { private void check(HttpServletRequest request) { Map params = RequestUtil.convertRequestParamsToMap(request); ApiParam apiParam = ApiParam.build(params); - signer.checkSign(apiParam, secret); + boolean right = signer.checkSign(apiParam, secret); + if (!right) { + throw new RuntimeException("签名校验失败"); + } } }