|
@@ -100,10 +100,12 @@ public class EasSysStudentLoginServiceImpl implements EasSysStudentLoginService
|
|
|
departments.forEach(departmentPojo -> {
|
|
|
try {
|
|
|
String authority = departmentPojo.getAuthority();
|
|
|
- String methodName = Character.toUpperCase(authority.charAt(0)) + authority.substring(1);
|
|
|
- Method declaredMethod = easAuthorityConfig.getClass().getDeclaredMethod("get" + methodName, null);
|
|
|
- List<String> depUrlList = (List<String>) declaredMethod.invoke(easAuthorityConfig, null);
|
|
|
- userDetailPojo.setPermissionPojos(depUrlList);
|
|
|
+ if (authority != null && !authority.isEmpty() && !authority.isBlank() ) {
|
|
|
+ String methodName = Character.toUpperCase(authority.charAt(0)) + authority.substring(1);
|
|
|
+ Method declaredMethod = easAuthorityConfig.getClass().getDeclaredMethod("get" + methodName, null);
|
|
|
+ List<String> depUrlList = (List<String>) declaredMethod.invoke(easAuthorityConfig, null);
|
|
|
+ userDetailPojo.setPermissionPojos(depUrlList);
|
|
|
+ }
|
|
|
} catch (NoSuchMethodException ignored) {}
|
|
|
catch (InvocationTargetException | IllegalAccessException ignored) {}
|
|
|
});
|