|
|
|
@ -404,8 +404,6 @@ public class TraccarClientImpl implements TraccarClient {
|
|
|
|
|
serverUrl(HttpReportingUtil.trackerServer())));
|
|
|
|
|
String result = res.get();
|
|
|
|
|
log.info("---------result--------");
|
|
|
|
|
log.info("---------result--------" + res.isDone());
|
|
|
|
|
log.info("---------result-------- " + result);
|
|
|
|
|
if (result.charAt(0) == '{') {
|
|
|
|
|
JSONObject obj = new JSONObject(result);
|
|
|
|
|
if (obj.has("id")) {
|
|
|
|
@ -584,8 +582,7 @@ public class TraccarClientImpl implements TraccarClient {
|
|
|
|
|
authorizedKey(HttpReportingUtil.trackerUser(), HttpReportingUtil.trackerPassword()),
|
|
|
|
|
serverUrl(HttpReportingUtil.trackerServer())));
|
|
|
|
|
String result = res.get();
|
|
|
|
|
// log.info(result);
|
|
|
|
|
// log.info("---------result--------");
|
|
|
|
|
log.info("---------result--------");
|
|
|
|
|
if (res.isDone() && result.charAt(0) == '{') {
|
|
|
|
|
JSONObject obj = new JSONObject(result);
|
|
|
|
|
if (obj.has("id")) {
|
|
|
|
|