Explorar el Código

fix: bug#修改视频云台操作接口

xieyonghong hace 3 años
padre
commit
eee897ab6f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/pages/media/Device/Channel/service.ts

+ 1 - 1
src/pages/media/Device/Channel/service.ts

@@ -28,7 +28,7 @@ class Service extends BaseService<ChannelItem> {
 
   // 云台控制-停止
   ptzStop = (deviceId: string, channelId: string) =>
-    request(`${this.uri}/device/${deviceId}/${channelId}/_stop`, { method: 'POST' });
+    request(`${this.uri}/device/${deviceId}/${channelId}/_ptz/STOP`, { method: 'POST' });
 
   // 云台控制-缩放、转向等
   ptzTool = (deviceId: string, channelId: string, direct: string, speed: number = 90) =>