|
|
@ -209,10 +209,12 @@ public class InteractiveServiceImpl implements IInteractiveService { |
|
|
|
Assert.isTrue(Func.isNotEmpty(function) && StringUtil.isNotBlank(function.getRoute()),() -> { |
|
|
|
Assert.isTrue(Func.isNotEmpty(function) && StringUtil.isNotBlank(function.getRoute()),() -> { |
|
|
|
throw new ServiceException("传入函数未获取到菜单,鉴权失败!"); |
|
|
|
throw new ServiceException("传入函数未获取到菜单,鉴权失败!"); |
|
|
|
}); |
|
|
|
}); |
|
|
|
R<Boolean> authenticationR = userClient.permissionMenuById(Long.valueOf(userId), function.getRoute()); |
|
|
|
if(Func.isNotEmpty(function.getRoute()) && StringUtil.isNotBlank(function.getRoute())) { |
|
|
|
Assert.isTrue(authenticationR.isSuccess() && authenticationR.getData(), () -> { |
|
|
|
R<Boolean> authenticationR = userClient.permissionMenuById(Long.valueOf(userId), function.getRoute()); |
|
|
|
throw new ServiceException("人员菜单鉴权失败!"); |
|
|
|
Assert.isTrue(authenticationR.isSuccess() && authenticationR.getData(), () -> { |
|
|
|
}); |
|
|
|
throw new ServiceException("人员菜单鉴权失败!"); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|