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
b44bbf33
Commit
b44bbf33
authored
Mar 29, 2023
by
shenjunjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature' into 'dev'
权限部分调整2 See merge request
!273
parents
c68e4604
9abc74a9
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 @
b44bbf33
...
...
@@ -22,6 +22,6 @@ public class InterceptorConfig implements WebMvcConfigurer {
@Override
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 @
b44bbf33
...
...
@@ -650,7 +650,7 @@ public class Tools {
}
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