From 87f48a9fc061a5e97a4143b7d6784816dd9c5c66 Mon Sep 17 00:00:00 2001 From: smallchill Date: Mon, 24 Dec 2018 22:35:59 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../springblade/core/secure/interceptor/SecureInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blade-core-secure/src/main/java/org/springblade/core/secure/interceptor/SecureInterceptor.java b/blade-core-secure/src/main/java/org/springblade/core/secure/interceptor/SecureInterceptor.java index 0d8318f..9342e03 100644 --- a/blade-core-secure/src/main/java/org/springblade/core/secure/interceptor/SecureInterceptor.java +++ b/blade-core-secure/src/main/java/org/springblade/core/secure/interceptor/SecureInterceptor.java @@ -38,7 +38,7 @@ public class SecureInterceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { - if (null != SecureUtil.getUser().getUserId()) { + if (null != SecureUtil.getUser()) { return true; } else { log.warn("签名认证失败,请求接口:{},请求IP:{},请求参数:{}", request.getRequestURI(), WebUtil.getIP(request), JsonUtil.toJson(request.getParameterMap()));