|
|
|
|
|
|
|
|
response = restTemplate.exchange(url, HttpMethod.GET, httpEntity, parameterizedTypeReference, request.getRoleId()); |
|
|
response = restTemplate.exchange(url, HttpMethod.GET, httpEntity, parameterizedTypeReference, request.getRoleId()); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("对应平台标识:{}", platform.getPlatformName()); |
|
|
log.error("对应平台标识:{}", platform.getPlatformName()); |
|
|
|
|
|
log.info(e.getMessage()); |
|
|
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "获取菜单列表失败!"); |
|
|
throw new ServiceException(HttpStatus.BAD_REQUEST.value(), "获取菜单列表失败!"); |
|
|
} |
|
|
} |
|
|
if (response == null || !response.hasBody() || response.getBody().getCode() != JsonResult.SUCCESS) { |
|
|
if (response == null || !response.hasBody() || response.getBody().getCode() != JsonResult.SUCCESS) { |