...
|
...
|
@@ -41,6 +41,7 @@ public class SecurityInterceptor implements HandlerInterceptor { |
|
|
@Override
|
|
|
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
|
|
|
//(1)排除掉exclude和debug模式
|
|
|
logger.debug("enter preHandle with url={}", request.getRequestURI());
|
|
|
if (this.isIgnore(request)) {
|
|
|
return true;
|
|
|
}
|
...
|
...
|
@@ -49,6 +50,7 @@ public class SecurityInterceptor implements HandlerInterceptor { |
|
|
Map<String, String> params = this.getRequestInfo(request);
|
|
|
|
|
|
//(3)验证请求参数中是否包含必填参数, 如果不包含则请求失败(活动暂时 client_secret 的校验)
|
|
|
logger.info("Begin validateReqParams. param is {}", params);
|
|
|
this.validateReqParams(params);
|
|
|
|
|
|
//(4)校验安全码是否正确
|
...
|
...
|
|