diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 181ed036..704f7419 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,12 +3,8 @@
-
-
-
-
+
-
@@ -156,7 +152,7 @@
-
+
@@ -209,6 +205,11 @@
102
+
+ file://$PROJECT_DIR$/src/main/java/com/lz/modules/sys/controller/SysMenuController.java
+ 43
+
+
diff --git a/src/main/java/com/lz/modules/sys/oauth2/OAuth2Filter.java b/src/main/java/com/lz/modules/sys/oauth2/OAuth2Filter.java
index 9522ae20..c5297787 100644
--- a/src/main/java/com/lz/modules/sys/oauth2/OAuth2Filter.java
+++ b/src/main/java/com/lz/modules/sys/oauth2/OAuth2Filter.java
@@ -56,19 +56,19 @@ public class OAuth2Filter extends AuthenticatingFilter {
protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
//获取请求token,如果token不存在,直接返回401
String token = getRequestToken((HttpServletRequest) request);
-// if(StringUtils.isBlank(token)){
-// HttpServletResponse httpResponse = (HttpServletResponse) response;
-// httpResponse.setHeader("Access-Control-Allow-Credentials", "true");
-// httpResponse.setHeader("Access-Control-Allow-Origin", HttpContextUtils.getOrigin());
-//
-// String json = new Gson().toJson(R.error(HttpStatus.SC_UNAUTHORIZED, "invalid token"));
-//
-// httpResponse.getWriter().print(json);
-//
-// return false;
-// }
- return true;
-// return executeLogin(request, response);
+ if(StringUtils.isBlank(token)){
+ HttpServletResponse httpResponse = (HttpServletResponse) response;
+ httpResponse.setHeader("Access-Control-Allow-Credentials", "true");
+ httpResponse.setHeader("Access-Control-Allow-Origin", HttpContextUtils.getOrigin());
+
+ String json = new Gson().toJson(R.error(HttpStatus.SC_UNAUTHORIZED, "invalid token"));
+
+ httpResponse.getWriter().print(json);
+
+ return false;
+ }
+// return true;
+ return executeLogin(request, response);
}
@Override
diff --git a/target/classes/com/lz/modules/app/controller/StaffController.class b/target/classes/com/lz/modules/app/controller/StaffController.class
index 76b8698b..d752860b 100644
Binary files a/target/classes/com/lz/modules/app/controller/StaffController.class and b/target/classes/com/lz/modules/app/controller/StaffController.class differ
diff --git a/target/classes/com/lz/modules/sys/oauth2/OAuth2Filter.class b/target/classes/com/lz/modules/sys/oauth2/OAuth2Filter.class
index 5c5c781b..94e5604e 100644
Binary files a/target/classes/com/lz/modules/sys/oauth2/OAuth2Filter.class and b/target/classes/com/lz/modules/sys/oauth2/OAuth2Filter.class differ