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