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
6bb6bbdf
Commit
6bb6bbdf
authored
Mar 26, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加日志
parent
1bc43597
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
AuthInterceptor.java
.../java/com/gic/enterprise/interceptor/AuthInterceptor.java
+13
-2
No files found.
gic-enterprise-common/src/main/java/com/gic/enterprise/interceptor/AuthInterceptor.java
View file @
6bb6bbdf
...
@@ -104,6 +104,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
...
@@ -104,6 +104,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
MenuInfo
menuInfo
=
moduleUrlMap
.
get
(
moduleUrl
);
MenuInfo
menuInfo
=
moduleUrlMap
.
get
(
moduleUrl
);
if
(
menuInfo
!=
null
)
{
if
(
menuInfo
!=
null
)
{
Map
<
String
,
MenuInfo
>
tempMap
=
listToMap
(
menuInfoList
);
Map
<
String
,
MenuInfo
>
tempMap
=
listToMap
(
menuInfoList
);
log
.
info
(
"接口的菜单信息:{}"
,
JSON
.
toJSONString
(
menuInfo
));
Integer
temp
=
menuInfo
.
getMenuId
();
Integer
temp
=
menuInfo
.
getMenuId
();
//获取第二层级的页面
//获取第二层级的页面
...
@@ -124,7 +125,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
...
@@ -124,7 +125,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
MenuInfo
secondMenuInfo
=
tempMap
.
get
(
temp
.
toString
());
MenuInfo
secondMenuInfo
=
tempMap
.
get
(
temp
.
toString
());
secondLevelMenuId
=
secondMenuInfo
.
getMenuId
();
secondLevelMenuId
=
secondMenuInfo
.
getMenuId
();
secondLevelMenuName
=
secondMenuInfo
.
getMenuName
();
secondLevelMenuName
=
secondMenuInfo
.
getMenuName
();
secondLevelUrl
=
secondLevelUrl
+
secondMenuInfo
.
getProjectUrlForWeb
()
+
secondMenuInfo
.
getMenuUrl
();
if
(
StringUtils
.
isNotBlank
(
secondMenuInfo
.
getProjectUrlForWeb
()))
{
secondLevelUrl
=
secondLevelUrl
+
secondMenuInfo
.
getProjectUrlForWeb
();
}
if
(
StringUtils
.
isNotBlank
(
secondMenuInfo
.
getMenuUrl
()))
{
secondLevelUrl
+=
secondMenuInfo
.
getMenuUrl
();
}
//获取第一层级的页面
//获取第一层级的页面
temp
=
getOperationModule
(
secondMenuInfo
.
getMenuId
(),
tempMap
);
temp
=
getOperationModule
(
secondMenuInfo
.
getMenuId
(),
tempMap
);
firstLevelMenuId
=
tempMap
.
get
(
temp
.
toString
()).
getMenuId
();
firstLevelMenuId
=
tempMap
.
get
(
temp
.
toString
()).
getMenuId
();
...
@@ -135,7 +141,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
...
@@ -135,7 +141,12 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
firstLevelMenuId
=
firstMenuInfo
.
getMenuId
();
firstLevelMenuId
=
firstMenuInfo
.
getMenuId
();
secondLevelMenuId
=
firstMenuInfo
.
getMenuId
();
secondLevelMenuId
=
firstMenuInfo
.
getMenuId
();
firstLevelMenuName
=
firstMenuInfo
.
getMenuName
();
firstLevelMenuName
=
firstMenuInfo
.
getMenuName
();
secondLevelUrl
=
secondLevelUrl
+
firstMenuInfo
.
getProjectUrlForWeb
()
+
firstMenuInfo
.
getMenuUrl
();
if
(
StringUtils
.
isNotBlank
(
firstMenuInfo
.
getProjectUrlForWeb
()))
{
secondLevelUrl
=
secondLevelUrl
+
firstMenuInfo
.
getProjectUrlForWeb
();
}
if
(
StringUtils
.
isNotBlank
(
firstMenuInfo
.
getMenuUrl
()))
{
secondLevelUrl
+=
firstMenuInfo
.
getMenuUrl
();
}
}
}
log
.
info
(
"一级页面的ID和名称:{},{}"
,
firstLevelMenuId
,
firstLevelMenuName
);
log
.
info
(
"一级页面的ID和名称:{},{}"
,
firstLevelMenuId
,
firstLevelMenuName
);
log
.
info
(
"二级页面的ID和名称:{},{}"
,
secondLevelMenuId
,
secondLevelMenuName
);
log
.
info
(
"二级页面的ID和名称:{},{}"
,
secondLevelMenuId
,
secondLevelMenuName
);
...
...
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