update 对接-打印错误日志
This commit is contained in:
+2
-2
@@ -62,7 +62,7 @@ public class AsmsPostUtil {
|
|||||||
ResponseEntity<Result> responseEntity = restTemplate.postForEntity(host + "xiaobodata/openApi/login", map, Result.class);
|
ResponseEntity<Result> responseEntity = restTemplate.postForEntity(host + "xiaobodata/openApi/login", map, Result.class);
|
||||||
if (!responseEntity.getBody().isSuccess()) {
|
if (!responseEntity.getBody().isSuccess()) {
|
||||||
System.out.println("汽车标准数字化平台:token获取失败" + responseEntity.getBody().toString());
|
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();
|
Map<String, String> resultMap = (Map<String, String>) responseEntity.getBody().getResult();
|
||||||
token = resultMap.get("token");
|
token = resultMap.get("token");
|
||||||
@@ -137,7 +137,7 @@ public class AsmsPostUtil {
|
|||||||
|
|
||||||
if (!responseEntity.getBody().isSuccess()) {
|
if (!responseEntity.getBody().isSuccess()) {
|
||||||
System.out.println("汽车标准数字化平台:请求发送失败" + responseEntity.getBody().toString());
|
System.out.println("汽车标准数字化平台:请求发送失败" + responseEntity.getBody().toString());
|
||||||
throw new JeroBootException("汽车标准数字化平台:请求发送失败");
|
throw new JeroBootException("汽车标准数字化平台:请求发送失败" + responseEntity.getBody().toString());
|
||||||
}
|
}
|
||||||
return responseEntity;
|
return responseEntity;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user