update 对接-打印错误日志

This commit is contained in:
liao
2023-10-27 11:56:15 +08:00
parent eb680d2159
commit 6d9a727e21
6 changed files with 76 additions and 6 deletions
@@ -61,6 +61,7 @@ public class AsmsPostUtil {
map.put("password", password);
ResponseEntity<Result> responseEntity = restTemplate.postForEntity(host + "xiaobodata/openApi/login", map, Result.class);
if (!responseEntity.getBody().isSuccess()) {
System.out.println("汽车标准数字化平台:token获取失败" + responseEntity.getBody().toString());
throw new JeroBootException("汽车标准数字化平台:token获取失败");
}
Map<String, String> resultMap = (Map<String, String>) responseEntity.getBody().getResult();
@@ -135,6 +136,7 @@ public class AsmsPostUtil {
}
if (!responseEntity.getBody().isSuccess()) {
System.out.println("汽车标准数字化平台:请求发送失败" + responseEntity.getBody().toString());
throw new JeroBootException("汽车标准数字化平台:请求发送失败");
}
return responseEntity;