|
|
@ -626,7 +626,9 @@ public class TraccarClientFactory {
|
|
|
|
authorizedKey(HttpReportingUtil.trackerUser(), HttpReportingUtil.trackerPassword()),
|
|
|
|
authorizedKey(HttpReportingUtil.trackerUser(), HttpReportingUtil.trackerPassword()),
|
|
|
|
serverUrl(HttpReportingUtil.trackerServer())));
|
|
|
|
serverUrl(HttpReportingUtil.trackerServer())));
|
|
|
|
String result = res.get();
|
|
|
|
String result = res.get();
|
|
|
|
|
|
|
|
if (null != trackerGroupInfo) {
|
|
|
|
log.info("Group " + trackerGroupInfo.getGroupId() + " has been added to Traccar.");
|
|
|
|
log.info("Group " + trackerGroupInfo.getGroupId() + " has been added to Traccar.");
|
|
|
|
|
|
|
|
}
|
|
|
|
if (res.isDone() && result.charAt(0) == '{') {
|
|
|
|
if (res.isDone() && result.charAt(0) == '{') {
|
|
|
|
JSONObject obj = new JSONObject(result);
|
|
|
|
JSONObject obj = new JSONObject(result);
|
|
|
|
if (obj.has("id")) {
|
|
|
|
if (obj.has("id")) {
|
|
|
|