Commit 0a379c4b authored by jim's avatar jim

log

parent 93faee21
...@@ -208,7 +208,12 @@ public class BrowserTask { ...@@ -208,7 +208,12 @@ public class BrowserTask {
String url = URL + "/ecc/ipinfo?accountId=browser&ip=" + ipResource.getAddr(); String url = URL + "/ecc/ipinfo?accountId=browser&ip=" + ipResource.getAddr();
Map<String, String> header = buildGetHeader(); Map<String, String> header = buildGetHeader();
String rs = HttpClientutils.doGet(url, header); String rs = HttpClientutils.doGet(url, header);
IpInfoResultDto ipInfoResultDto = JSONObject.parseObject(rs, IpInfoResultDto.class); IpInfoResultDto ipInfoResultDto = null;
try {
ipInfoResultDto = JSONObject.parseObject(rs, IpInfoResultDto.class);
} catch (Exception e) {
log.error("fail to pars json {}", rs, e);
}
if (ipInfoResultDto != null && StringUtils.isBlank(ipInfoResultDto.getErrorCode())) { if (ipInfoResultDto != null && StringUtils.isBlank(ipInfoResultDto.getErrorCode())) {
log.error(ipInfoResultDto.getErrorCode()); log.error(ipInfoResultDto.getErrorCode());
log.error(ipInfoResultDto.getStatus()); log.error(ipInfoResultDto.getStatus());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment