forked from drone/command-center-dashboard

chenyao
2025-04-18 dfac8531d4ed65183ebffcbc7f88aea16f6ac64b
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,
  });
};