menuVOList) {
+ if (CollectionUtil.isNotEmpty(menuVOList)) {
+ for (SysMenuVO sm : menuVOList) {
+ if (StringUtils.hasText(sm.getMenuUrl())) {
+ menuSet.add(sm.getMenuUrl());
+ }
+ listMenu(menuSet, sm.getList());
+ }
+ }
+ }
+
}
/**
diff --git a/roncoo-recharge-boss/src/main/resources/templates/admin/sysUserInfo/list.ftl b/roncoo-recharge-boss/src/main/resources/templates/admin/sysUserInfo/list.ftl
index 35c6245..9732404 100644
--- a/roncoo-recharge-boss/src/main/resources/templates/admin/sysUserInfo/list.ftl
+++ b/roncoo-recharge-boss/src/main/resources/templates/admin/sysUserInfo/list.ftl
@@ -20,7 +20,9 @@
+ <@shiro.hasPermission name="/admin/sysUserInfo/add">
添加
+ @shiro.hasPermission>
@@ -54,7 +56,9 @@
查看
修改
+ <@shiro.hasPermission name="/admin/sysUserInfo/delete">
删除
+ @shiro.hasPermission>
<#if bean.userType == 1>
设置角色
#if>
diff --git a/roncoo-recharge-gateway/src/main/java/com/roncoo/recharge/gateway/common/WebMvcConfigurer.java b/roncoo-recharge-gateway/src/main/java/com/roncoo/recharge/gateway/common/WebMvcConfigurer.java
index 929ab29..cd2f32e 100644
--- a/roncoo-recharge-gateway/src/main/java/com/roncoo/recharge/gateway/common/WebMvcConfigurer.java
+++ b/roncoo-recharge-gateway/src/main/java/com/roncoo/recharge/gateway/common/WebMvcConfigurer.java
@@ -10,8 +10,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;
-import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import com.roncoo.recharge.util.base.BaseRoncoo;
import com.xiaoleilu.hutool.http.HttpUtil;
@@ -20,18 +18,13 @@ import com.xiaoleilu.hutool.http.HttpUtil;
* 拦截器
*/
@Configuration
-public class WebMvcConfigurer extends WebMvcConfigurerAdapter {
+public class WebMvcConfigurer {
@Bean
ShiroInterceptor shiroInterceptor() {
return new ShiroInterceptor();
}
- @Override
- public void addInterceptors(InterceptorRegistry registry) {
- registry.addInterceptor(shiroInterceptor()).addPathPatterns("/boss/**");
- super.addInterceptors(registry);
- }
}
/**
@@ -43,7 +36,7 @@ class ShiroInterceptor extends BaseRoncoo implements HandlerInterceptor {
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
// 校验请求的ip
System.out.println(HttpUtil.getClientIP(request));
-
+
return true;
}
|