update 对接-打印错误日志

This commit is contained in:
liao
2023-10-27 14:21:31 +08:00
parent 6d9a727e21
commit f4e4e89c28
@@ -62,7 +62,7 @@ public class AsmsPostUtil {
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获取失败");
throw new JeroBootException("汽车标准数字化平台:token获取失败" + responseEntity.getBody().toString());
}
Map<String, String> resultMap = (Map<String, String>) responseEntity.getBody().getResult();
token = resultMap.get("token");
@@ -137,7 +137,7 @@ public class AsmsPostUtil {
if (!responseEntity.getBody().isSuccess()) {
System.out.println("汽车标准数字化平台:请求发送失败" + responseEntity.getBody().toString());
throw new JeroBootException("汽车标准数字化平台:请求发送失败");
throw new JeroBootException("汽车标准数字化平台:请求发送失败" + responseEntity.getBody().toString());
}
return responseEntity;
}