|
@@ -838,19 +838,19 @@ public class ProjectDomainService {
|
|
|
@SneakyThrows
|
|
|
public void selectProjectDetailsById(String projectType, String projectId) {
|
|
|
String tokenUrl = customConfiguration.getTokenUri() + "?grant_type=client_credentials" + "&client_id=" + customConfiguration.getClientId() + "&client_secret=" + customConfiguration.getClientSecret();
|
|
|
- log.info("获取仿真云平台 token:" + tokenUrl);
|
|
|
+ log.debug("获取仿真云平台 token:" + tokenUrl);
|
|
|
String response = HttpUtil.get(tokenUrl);
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
JsonNode jsonNode = objectMapper.readTree(response);
|
|
|
String accessToken = jsonNode.path("access_token").asText();
|
|
|
- log.info("仿真云平台 token 为:" + accessToken);
|
|
|
+ log.debug("仿真云平台 token 为:" + accessToken);
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
|
headers.put("Authorization", "Bearer " + accessToken);
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
params.put("projectType", projectType);
|
|
|
params.put("id", projectId);
|
|
|
String result = HttpUtil.post(customConfiguration.getProjectDetailsUri(), headers, params);
|
|
|
- log.info("访问仿真云平台项目详情接口:" + customConfiguration.getProjectDetailsUri() + ",请求头为:" + headers + ",请求体为:" + params + "结果为:" + result);
|
|
|
+ log.debug("访问仿真云平台项目详情接口:" + customConfiguration.getProjectDetailsUri() + ",请求头为:" + headers + ",请求体为:" + params + "结果为:" + result);
|
|
|
ResponseBodyVO<?> responseBodyVO = JsonUtil.jsonToBean(result, ResponseBodyVO.class);
|
|
|
String projectDetailsVOJson = JsonUtil.beanToJson(responseBodyVO.getInfo());
|
|
|
TimeUnit.SECONDS.sleep(5);
|
|
@@ -867,19 +867,19 @@ public class ProjectDomainService {
|
|
|
@SneakyThrows
|
|
|
public void selectProjectReportById(String projectType, String projectId) {
|
|
|
String tokenUrl = customConfiguration.getTokenUri() + "?grant_type=client_credentials" + "&client_id=" + customConfiguration.getClientId() + "&client_secret=" + customConfiguration.getClientSecret();
|
|
|
- log.info("获取仿真云平台 token:" + tokenUrl);
|
|
|
+ log.debug("获取仿真云平台 token:" + tokenUrl);
|
|
|
String response = HttpUtil.get(tokenUrl);
|
|
|
ObjectMapper objectMapper = new ObjectMapper();
|
|
|
JsonNode jsonNode = objectMapper.readTree(response);
|
|
|
String accessToken = jsonNode.path("access_token").asText();
|
|
|
- log.info("仿真云平台 token 为:" + accessToken);
|
|
|
+ log.debug("仿真云平台 token 为:" + accessToken);
|
|
|
Map<String, String> headers = new HashMap<>();
|
|
|
headers.put("Authorization", "Bearer " + accessToken);
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
params.put("projectType", projectType);
|
|
|
params.put("id", projectId);
|
|
|
String result = HttpUtil.post(customConfiguration.getProjectReportUri(), headers, params);
|
|
|
- log.info("访问仿真云平台项目报告接口:" + customConfiguration.getProjectReportUri() + ",请求头为:" + headers + ",请求体为:" + params + "结果为:" + result);
|
|
|
+ log.debug("访问仿真云平台项目报告接口:" + customConfiguration.getProjectReportUri() + ",请求头为:" + headers + ",请求体为:" + params + "结果为:" + result);
|
|
|
ResponseBodyVO<?> responseBodyVO = JsonUtil.jsonToBean(result, ResponseBodyVO.class);
|
|
|
String projectReportVOJson = JsonUtil.beanToJson(responseBodyVO.getInfo());
|
|
|
TimeUnit.SECONDS.sleep(5);
|