Commit 7202f54f authored by 曹盼盼's avatar 曹盼盼

拦截器放行一些接口

parent 4b83ceea
...@@ -83,10 +83,15 @@ public class ControllerAop { ...@@ -83,10 +83,15 @@ public class ControllerAop {
// 不需要添加请求头的接口 // 不需要添加请求头的接口
String[] url = new String[] { "/api/user/save/curCompany", "/jcs/command/lookHtmlText", String[] url = new String[] { "/api/user/save/curCompany", "/jcs/command/lookHtmlText",
"/jcs/common/duty-person/findByDutyAreaId", "/tzs/wechatBack", "/tzs/elevator/getElevatorInfo", "/jcs/common/duty-person/findByDutyAreaId", "/tzs/wechatBack", "/tzs/elevator/getElevatorInfo",
"/openapi/bizToken/applyToken","/tzs/flc-unit-info/region/tree","/tzs/reg-unit-info/management-unit/tree", "/openapi/bizToken/applyToken"
"/tzs/reg-unit-info/unit-type/list","/tzs/reg-unit-info/*" ,"/tzs/flc-unit-info/region/tree"
// ,"/tzs/reg-unit-info/management-unit/tree",
//"/tzs/reg-unit-info/unit-type/list"
//+ ",/tzs/reg-unit-info/management-unit/tree","/tzs/flc-unit-info/region/tree", "/tzs/reg-unit-info/unit-type/list" //+ ",/tzs/reg-unit-info/management-unit/tree","/tzs/flc-unit-info/region/tree", "/tzs/reg-unit-info/unit-type/list"
}; };
if (request.getRequestURI().contains("/tzs/reg-unit-info") || request.getRequestURI().contains("/tzs/flc-unit-info")) {
return;
}
// 获取请求路径 // 获取请求路径
for (String uri : url) { for (String uri : url) {
if (request.getRequestURI().indexOf(uri) != -1) { if (request.getRequestURI().indexOf(uri) != -1) {
......
...@@ -606,7 +606,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI ...@@ -606,7 +606,7 @@ public class RegUnitInfoServiceImpl extends BaseService<RegUnitInfoDto, RegUnitI
userRoleList = allRoleList.stream().filter(r -> r.getRoleName().equals(unitType.getName())) userRoleList = allRoleList.stream().filter(r -> r.getRoleName().equals(unitType.getName()))
.collect(Collectors.toList()); .collect(Collectors.toList());
for (RoleModel roleModel : allRoleList.stream() for (RoleModel roleModel : allRoleList.stream()
.filter(r -> r.getSequenceNbr().toString().contains(unitType.getExtend())).collect(Collectors.toList())) { .filter(r -> unitType.getExtend().contains(r.getSequenceNbr().toString())).collect(Collectors.toList())) {
userRoleList.add(roleModel); userRoleList.add(roleModel);
} }
userRoleList.forEach(r -> { userRoleList.forEach(r -> {
......
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