优化监控

This commit is contained in:
tanghc
2019-08-15 14:52:24 +08:00
parent 69760d2f05
commit 9067a34118

View File

@@ -62,7 +62,10 @@ public class ErrorLogController {
private void check(HttpServletRequest request) { private void check(HttpServletRequest request) {
Map<String, String> params = RequestUtil.convertRequestParamsToMap(request); Map<String, String> params = RequestUtil.convertRequestParamsToMap(request);
ApiParam apiParam = ApiParam.build(params); ApiParam apiParam = ApiParam.build(params);
signer.checkSign(apiParam, secret); boolean right = signer.checkSign(apiParam, secret);
if (!right) {
throw new RuntimeException("签名校验失败");
}
} }
} }