🐛 修复 BUG

This commit is contained in:
smallchill 2018-12-24 22:35:59 +08:00
parent f58152a24f
commit 87f48a9fc0

View File

@ -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()));