From b4dddb0b081847ecc68ccc379b8964b3b8bbcba5 Mon Sep 17 00:00:00 2001
From: panlinlin <648540858@qq.com>
Date: Sat, 8 Jun 2024 23:55:06 +0800
Subject: [PATCH] =?UTF-8?q?1078-=E6=94=AF=E6=8C=81=E4=BA=91=E5=8F=B0?=
=?UTF-8?q?=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../jt1078/controller/JT1078Controller.java | 6 +-
web_src/src/components/JTChannelList.vue | 2 +-
.../src/components/dialog/jtDevicePlayer.vue | 971 ++++++++++++++++++
3 files changed, 975 insertions(+), 4 deletions(-)
create mode 100755 web_src/src/components/dialog/jtDevicePlayer.vue
diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/controller/JT1078Controller.java b/src/main/java/com/genersoft/iot/vmp/jt1078/controller/JT1078Controller.java
index c19566378..9404e8f91 100644
--- a/src/main/java/com/genersoft/iot/vmp/jt1078/controller/JT1078Controller.java
+++ b/src/main/java/com/genersoft/iot/vmp/jt1078/controller/JT1078Controller.java
@@ -408,7 +408,7 @@ public class JT1078Controller {
@Parameter(name = "channelId", description = "通道国标编号, 一般为从1开始的数字", required = true)
@Parameter(name = "command", description = "控制指令,允许值: left, right, up, down, zoomin, zoomout, irisin, irisout, focusnear, focusfar, stop", required = true)
@Parameter(name = "speed", description = "速度(0-255), command,值 left, right, up, down时有效", required = true)
- @PostMapping("/ptz")
+ @GetMapping("/ptz")
public void ptz(String phoneNumber, Integer channelId, String command, int speed){
logger.info("[1078-云台控制] phoneNumber:{}, channelId:{}, command: {}, speed: {}", phoneNumber, channelId, command, speed);
@@ -419,7 +419,7 @@ public class JT1078Controller {
@Parameter(name = "phoneNumber", description = "设备手机号", required = true)
@Parameter(name = "channelId", description = "通道国标编号, 一般为从1开始的数字", required = true)
@Parameter(name = "command", description = "控制指令,允许值: on off", required = true)
- @PostMapping("/fill-light")
+ @GetMapping("/fill-light")
public void fillLight(String phoneNumber, Integer channelId, String command){
logger.info("[1078-补光灯开关] phoneNumber:{}, channelId:{}, command: {}", phoneNumber, channelId, command);
@@ -430,7 +430,7 @@ public class JT1078Controller {
@Parameter(name = "phoneNumber", description = "设备手机号", required = true)
@Parameter(name = "channelId", description = "通道国标编号, 一般为从1开始的数字", required = true)
@Parameter(name = "command", description = "控制指令,允许值: on off", required = true)
- @PostMapping("/wiper")
+ @GetMapping("/wiper")
public void wiper(String phoneNumber, Integer channelId, String command){
logger.info("[1078-雨刷开关] phoneNumber:{}, channelId:{}, command: {}", phoneNumber, channelId, command);
diff --git a/web_src/src/components/JTChannelList.vue b/web_src/src/components/JTChannelList.vue
index 8c3bbcbac..bb711cf80 100755
--- a/web_src/src/components/JTChannelList.vue
+++ b/web_src/src/components/JTChannelList.vue
@@ -98,7 +98,7 @@
+
+