|
@ -87,12 +87,12 @@ function padZero(num) { |
|
|
99 /各⽅向动作停⽌/ |
|
|
99 /各⽅向动作停⽌/ |
|
|
* @returns |
|
|
* @returns |
|
|
*/ |
|
|
*/ |
|
|
export function controlCamera(camId, cmdType) { |
|
|
export function controlCamera(camId, cmdType, isMsgType = true) { |
|
|
return request({ |
|
|
return request({ |
|
|
url: "/video/PTZControl", |
|
|
url: "/video/PTZControl", |
|
|
method: "get", |
|
|
method: "get", |
|
|
params: { |
|
|
params: { |
|
|
msgType: 3, |
|
|
...(isMsgType ? { msgType: 3 } : undefined), |
|
|
camId, |
|
|
camId, |
|
|
cmdType, |
|
|
cmdType, |
|
|
speed: 1, |
|
|
speed: 1, |
|
|