update 对接-打印错误日志
This commit is contained in:
+2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user