puzhibing
2025-05-06 4e87f5f570a84621734035217f08882f52809c48
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/OrderController.java
@@ -184,7 +184,7 @@
   public R<RealVideoResp> getOrderMonitoring(Integer id) {
      Order order = orderService.getById(id);
      if (null == order) {
         return R.fail("获取视频失败");
         return R.fail("发起实时音视频失败,可能是车辆离线导致");
      }
      Car car = carService.getById(order.getCarId());
      //手动加一次状态数据,避免定时任务结束任务线程
@@ -202,14 +202,14 @@
//         live_hls(data.getUrl(), car);
//         resp.setServerIp(hlsIp);
//         resp.setServerPort(hlsPort);
         live_flv(data.getUrl(), car.getId());
         resp.setUrl(data.getUrl());
//         live_flv(data.getUrl(), car.getId());
         resp.setServerIp(flvIp);
         resp.setServerPort(flvHttpPort);
         return R.ok(resp);
      }
      log.error("获取视频失败:{}", startupAckVoR.getMsg());
      return R.fail("获取视频失败");
      return R.fail("发起实时音视频失败,可能是车辆离线导致");
   }