From 6d1f77967ae81865c36f9015e570c2af82cc7733 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 8 Aug 2023 16:02:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E5=90=8E=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/glxp/api/service/sync/WebSocketComponent.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/glxp/api/service/sync/WebSocketComponent.java b/src/main/java/com/glxp/api/service/sync/WebSocketComponent.java index a380b32c1..97f6cf8aa 100644 --- a/src/main/java/com/glxp/api/service/sync/WebSocketComponent.java +++ b/src/main/java/com/glxp/api/service/sync/WebSocketComponent.java @@ -34,6 +34,7 @@ public class WebSocketComponent implements CommandLineRunner { SyncDataSetEntity syncDataSetEntity = syncDataSetDao.selectSet(); String ip = syncDataSetEntity.getSyncIp(); ip = ip.replace("http://", ""); + ip = ip.replace("/SP_SYNC_SERVER", ""); try { SpsWebSocketClient client = new SpsWebSocketClient("ws://" + ip + "/sps/web/sync/2/" + socketToken); client.setSocketMsgService(socketMsgService);