获取token的总线地址错误
This commit is contained in:
parent
496b219e9a
commit
b8510a65b8
|
@ -48,7 +48,7 @@ class MonitorController(
|
||||||
val channelId = queryParams.get("channelId")
|
val channelId = queryParams.get("channelId")
|
||||||
val subType = queryParams.get("subType")
|
val subType = queryParams.get("subType")
|
||||||
val scheme = queryParams.get("scheme")
|
val scheme = queryParams.get("scheme")
|
||||||
event!!.request<JsonArray>(EventBusAddress.SYS_MONITOR_USER_ALLMONITORUSER.address, JsonObject()) {
|
event!!.request<JsonArray>(EventBusAddress.SYS_MONITOR_USER_ALLMONITORUSER_TOKEN.address, JsonObject()) {
|
||||||
if (it.succeeded()) {
|
if (it.succeeded()) {
|
||||||
val token = it.result().body().stream().filter { index ->
|
val token = it.result().body().stream().filter { index ->
|
||||||
index as JsonObject
|
index as JsonObject
|
||||||
|
@ -58,7 +58,7 @@ class MonitorController(
|
||||||
tokenInfo as JsonObject
|
tokenInfo as JsonObject
|
||||||
tokenInfo.put("channelId", channelId)
|
tokenInfo.put("channelId", channelId)
|
||||||
tokenInfo.put("subType", subType)
|
tokenInfo.put("subType", subType)
|
||||||
tokenInfo.put("scheme", MonitorScheme.values()[scheme as Int].scheme)
|
tokenInfo.put("scheme", MonitorScheme.values()[scheme.toInt()].scheme)
|
||||||
event!!.request<JsonObject>(EventBusAddress.SYS_DEVICE_CHANNEL_PREVIEW_URL.address, tokenInfo) { previewUrl ->
|
event!!.request<JsonObject>(EventBusAddress.SYS_DEVICE_CHANNEL_PREVIEW_URL.address, tokenInfo) { previewUrl ->
|
||||||
if (previewUrl.succeeded()) {
|
if (previewUrl.succeeded()) {
|
||||||
requestHandler
|
requestHandler
|
||||||
|
|
Loading…
Reference in New Issue