| | |
| | | .outOfControlAction(waylineJob.getOutOfControlAction()) |
| | | .rthMode(waylineJob.getRthMode()) |
| | | .file(WaylineTaskFileDTO.builder() |
| | | .url(url.toString()) |
| | | // .url(url.toString().replace("https://192.168.10.103:9001", "http://192.168.10.103:9011")) |
| | | // .fingerprint(waylineFile.get().getSign()) |
| | | // .replace("https://", "http://") |
| | | // .replace("9001", "9011") |
| | | .url(url.toString()) |
| | | .fingerprint(md5) |
| | | .build()) |
| | | .simulateMission(WaylineSimulateMissionDTO.builder() |
| | | .isEnable(1) |
| | | .latitude(46.55819013988211) |
| | | .longitude(125.14652370145113) |
| | | .build()) |
| | | // .simulateMission(WaylineSimulateMissionDTO.builder() |
| | | // .isEnable(1) |
| | | // .latitude(46.55819013988211) |
| | | // .longitude(125.14652370145113) |
| | | // .build()) |
| | | .build(); |
| | | |
| | | String topic = TopicConst.THING_MODEL_PRE + TopicConst.PRODUCT + |
| | |
| | | // url = waylineFileService.getObjectUrl(waylineFile.get().getWaylineId()); |
| | | // url = new URL(ardRouteOpt.getUpPath()); |
| | | |
| | | Map<String, Object> jsonResourceGet = new HashMap<>(); |
| | | jsonResourceGet.put("url", url.toString()); |
| | | jsonResourceGet.put("fingerprint", md5); |
| | | // Map<String, Object> jsonResourceGet = new HashMap<>(); |
| | | // jsonResourceGet.put("url", url.toString().replace("https//192.168.10.103:9001", "http//192.168.10.103:9002")); |
| | | // jsonResourceGet.put("fingerprint", md5); |
| | | // .replace("https://", "http://") |
| | | // .replace("9001", "9011") |
| | | |
| | | builder.data(RequestsReply.success(WaylineTaskCreateDTO.builder() |
| | | .file(WaylineTaskFileDTO.builder() |
| | |
| | | .fingerprint(md5) |
| | | .build()) |
| | | .build())); |
| | | |
| | | // WaylineTaskFileDTO.builder() |
| | | // .url(url.toString()) |
| | | //// .fingerprint(waylineFile.get().getSign()) |
| | | // .fingerprint(md5) |
| | | // .build() |
| | | |
| | | } catch (NullPointerException | IOException e) { |
| | | e.printStackTrace(); |