|
|
|
@ -204,11 +204,8 @@ public class InteractiveServiceImpl implements IInteractiveService {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// 菜单鉴权
|
|
|
|
|
if(StringUtil.isNotBlank(funcCode)) { |
|
|
|
|
if(StringUtil.isNotBlank(funcCode) && StringUtil.isNotBlank(userId)) { |
|
|
|
|
FunctionEntity function = functionService.getFunctionByCode(funcCode); |
|
|
|
|
Assert.isTrue(Func.isNotEmpty(function) && StringUtil.isNotBlank(function.getRoute()),() -> { |
|
|
|
|
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(), () -> { |
|
|
|
|