From b8510a65b8d77c5f7f175616fd6009ac6b86218c Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 22 Nov 2022 17:30:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96token=E7=9A=84=E6=80=BB?= =?UTF-8?q?=E7=BA=BF=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hisense/dahua_video/controller/MonitorController.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/hisense/dahua_video/controller/MonitorController.kt b/src/main/kotlin/com/hisense/dahua_video/controller/MonitorController.kt index db0655c..4a7b446 100644 --- a/src/main/kotlin/com/hisense/dahua_video/controller/MonitorController.kt +++ b/src/main/kotlin/com/hisense/dahua_video/controller/MonitorController.kt @@ -48,7 +48,7 @@ class MonitorController( val channelId = queryParams.get("channelId") val subType = queryParams.get("subType") val scheme = queryParams.get("scheme") - event!!.request(EventBusAddress.SYS_MONITOR_USER_ALLMONITORUSER.address, JsonObject()) { + event!!.request(EventBusAddress.SYS_MONITOR_USER_ALLMONITORUSER_TOKEN.address, JsonObject()) { if (it.succeeded()) { val token = it.result().body().stream().filter { index -> index as JsonObject @@ -58,7 +58,7 @@ class MonitorController( tokenInfo as JsonObject tokenInfo.put("channelId", channelId) tokenInfo.put("subType", subType) - tokenInfo.put("scheme", MonitorScheme.values()[scheme as Int].scheme) + tokenInfo.put("scheme", MonitorScheme.values()[scheme.toInt()].scheme) event!!.request(EventBusAddress.SYS_DEVICE_CHANNEL_PREVIEW_URL.address, tokenInfo) { previewUrl -> if (previewUrl.succeeded()) { requestHandler