From 233c0e20548cadafb77efdcb3418f38c6658bbad Mon Sep 17 00:00:00 2001 From: jiazx0107@163.com <jiazx0107@163.com> Date: 星期四, 26 十月 2023 14:20:57 +0800 Subject: [PATCH] 四川省网关接口相关7 --- src/main/java/com/fzzy/gateway/hx2023/websocket/WebSocketDeviceLed.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/fzzy/gateway/hx2023/websocket/WebSocketDeviceLed.java b/src/main/java/com/fzzy/gateway/hx2023/websocket/WebSocketDeviceLed.java index 7662a8a..a8d27d6 100644 --- a/src/main/java/com/fzzy/gateway/hx2023/websocket/WebSocketDeviceLed.java +++ b/src/main/java/com/fzzy/gateway/hx2023/websocket/WebSocketDeviceLed.java @@ -1,7 +1,7 @@ package com.fzzy.gateway.hx2023.websocket; import com.alibaba.fastjson.JSONObject; -import com.fzzy.gateway.hx2023.ScConstant; +import com.fzzy.gateway.GatewayUtils; import com.fzzy.gateway.hx2023.data.WebSocketPacket; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang.StringUtils; @@ -42,7 +42,7 @@ sessionPool.put(key, session); sessionIds.put(session.getId(), key); - ScConstant.updateOnline(deviceId); + GatewayUtils.updateOnline(deviceId); log.info("new webSocket,clientId={}", key); } @@ -57,7 +57,7 @@ String deviceId = key.substring(0, key.indexOf("-")); - ScConstant.updateOffOnline(deviceId); + GatewayUtils.updateOffOnline(deviceId); log.info("WebSocket杩炴帴鍏抽棴={}", key); @@ -84,7 +84,7 @@ String deviceId = key.substring(0, key.indexOf("-")); - ScConstant.updateOffOnline(deviceId); + GatewayUtils.updateOffOnline(deviceId); sessionPool.remove(key); sessionIds.remove(session.getId()); -- Gitblit v1.9.3