Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
brandkbs2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenjunjie
brandkbs2
Commits
9abc74a9
Commit
9abc74a9
authored
Mar 29, 2023
by
shenjunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限部分调整2
parent
2823843b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/zhiwei/brandkbs2/interceptor/InterceptorConfig.java
+1
-1
src/main/java/com/zhiwei/brandkbs2/util/Tools.java
+1
-1
No files found.
src/main/java/com/zhiwei/brandkbs2/interceptor/InterceptorConfig.java
View file @
9abc74a9
...
@@ -22,6 +22,6 @@ public class InterceptorConfig implements WebMvcConfigurer {
...
@@ -22,6 +22,6 @@ public class InterceptorConfig implements WebMvcConfigurer {
@Override
@Override
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
public
void
addInterceptors
(
InterceptorRegistry
registry
)
{
// 自定义拦截器,添加拦截路径和排除拦截路径
// 自定义拦截器,添加拦截路径和排除拦截路径
registry
.
addInterceptor
(
mainAuthInterceptor
).
addPathPatterns
(
"/
common/**"
,
"/app/**"
,
"/admin/**"
,
"/mobile/
**"
).
excludePathPatterns
(
"/app/event/detail/**"
);
registry
.
addInterceptor
(
mainAuthInterceptor
).
addPathPatterns
(
"/**"
).
excludePathPatterns
(
"/app/event/detail/**"
);
}
}
}
}
src/main/java/com/zhiwei/brandkbs2/util/Tools.java
View file @
9abc74a9
...
@@ -650,7 +650,7 @@ public class Tools {
...
@@ -650,7 +650,7 @@ public class Tools {
}
}
public
static
boolean
tokenEmpty
(
String
token
)
{
public
static
boolean
tokenEmpty
(
String
token
)
{
return
null
==
token
||
Objects
.
equals
(
"undefined"
,
token
);
return
null
==
token
||
Objects
.
equals
(
"undefined"
,
token
)
||
Objects
.
equals
(
"null"
,
token
)
;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment