Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
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
base_platform_enterprise
gic-enterprise-base
Commits
fa8345bf
Commit
fa8345bf
authored
Nov 18, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限拦截修复:如果层级小于等于2的进行额外判断
parent
05cd3ddb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
AuthInterceptor.java
.../java/com/gic/enterprise/interceptor/AuthInterceptor.java
+6
-4
No files found.
gic-enterprise-common/src/main/java/com/gic/enterprise/interceptor/AuthInterceptor.java
View file @
fa8345bf
...
...
@@ -101,12 +101,14 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
if
(
menuInfo
!=
null
)
{
Map
<
String
,
MenuInfo
>
tempMap
=
listToMap
(
menuInfoList
);
Integer
temp
=
getOperationModule
(
menuInfo
.
getMenuId
(),
tempMap
);
Integer
temp
=
menuInfo
.
getMenuId
(
);
//获取第二层级的页面
while
(
tempMap
.
get
(
temp
.
toString
()).
getLevel
().
intValue
()
!=
2
)
{
temp
=
getOperationModule
(
tempMap
.
get
(
temp
.
toString
()).
getMenuId
(),
tempMap
);
if
(
menuInfo
.
getLevel
().
intValue
()
>
2
)
{
temp
=
getOperationModule
(
menuInfo
.
getMenuId
(),
tempMap
);
while
(
tempMap
.
get
(
temp
.
toString
()).
getLevel
().
intValue
()
!=
2
)
{
temp
=
getOperationModule
(
tempMap
.
get
(
temp
.
toString
()).
getMenuId
(),
tempMap
);
}
}
int
secondLevelMenuId
=
tempMap
.
get
(
temp
.
toString
()).
getMenuId
();
String
secondLevelMenuName
=
tempMap
.
get
(
temp
.
toString
()).
getMenuName
();
//获取第一层级的页面
...
...
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