无关风月
2024-11-14 3af9c82375df6bd77ae78a5d900c409a895ecd18
ManagementIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/GoogleMap/FleetEngineUtil.java
@@ -478,7 +478,7 @@
      end_point.put("longitude", end_lng);
      dropoffPoint.put("point", end_point);
      body.put("dropoffPoint", dropoffPoint);
      logger.info("创建行程请求:{}", body.toJSONString());
      logger.info("创建行程请求:{}   {}", tripId, body.toJSONString());
      HttpRequest request = post.body(body.toJSONString());
      HttpResponse response = request.execute();
      logger.info("创建行程结果:{}", response.body());
@@ -698,7 +698,7 @@
         dropoffPoint.put("point", end_point);
         body.put("dropoffPoint", dropoffPoint);
      }
      logger.info("修改行程请求:{}", body.toJSONString());
      logger.info("修改行程请求:{}   {}", tripId, body.toJSONString());
      HttpRequest request = put.body(body.toJSONString());
      HttpResponse response = request.execute();
      logger.info("修改行程结果:{}", response.body());
@@ -970,6 +970,7 @@
    * @return
    */
   public boolean reportBillableEvent(String tripId) {
      log.info("上报行程:{}", tripId);
      String billableEventId = UUIDUtil.getRandomCode();
      String url = "https://mobilitybilling.googleapis.com/v1:reportBillableEvent?regionCode=GH&key=" + key + "&billableEventId=" + billableEventId;
      HttpRequest post = HttpUtil.createPost(url);