From bd152b06ef36dce4e31d621cbd28fd1c17a34dba Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 19 Apr 2025 08:54:37 +0800
Subject: [PATCH] feat: 抽出ws消息

---
 src/api/payload.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/api/payload.js b/src/api/payload.js
index aa4796a..8bc5a14 100644
--- a/src/api/payload.js
+++ b/src/api/payload.js
@@ -44,7 +44,7 @@
 // 拍照和录像
 export async function callPhotoAndVideoCmd(sn, type) {
   return await request({
-    url:`/drone-device-core/droneAirport/liveStreamApi/${sn}/payload/photoAndVideoCmd/${type}`,
+    url:`${API_PREFIX}/devices/${sn}/payload/photoAndVideoCmd/${type}`,
     method:'get',
   })
 }
@@ -132,4 +132,14 @@
 };
 
 
+// 无人机开启ai
+export const getLiveAiLinkApi = (data) => {
+  return request({
+    url:`/drone-device-core/manage/api/v1/live/streams/start/ai`,
+    method: 'post',
+    data,
+  });
+};
+
+
 

--
Gitblit v1.9.3