mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
优化监控
This commit is contained in:
@@ -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("签名校验失败");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user