Commit 5184b06f by guojuxing

操作模块第一和第二层级修复

parent 4a52cd9e
......@@ -110,9 +110,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
//获取第二层级的页面
if (menuInfo.getLevel().intValue() > 2) {
temp = getOperationModule(menuInfo.getMenuId(), tempMap);
log.info("接口的菜单信息2:{}", temp);
while (tempMap.get(temp.toString()).getLevel().intValue() != 2) {
log.info("接口的菜单信息3:{}", temp);
temp = getOperationModule(tempMap.get(temp.toString()).getMenuId(), tempMap);
}
}
......@@ -123,7 +121,7 @@ public class AuthInterceptor extends HandlerInterceptorAdapter {
//用于下载文件,跳转到频道页的地址
String secondLevelUrl = "https://four.gicdev.com";
//如果是第二级的
if (menuInfo.getLevel().intValue() == 2) {
if (tempMap.get(temp.toString()).getLevel().intValue() == 2) {
MenuInfo secondMenuInfo = tempMap.get(temp.toString());
secondLevelMenuId = secondMenuInfo.getMenuId();
secondLevelMenuName = secondMenuInfo.getMenuName();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment