From 641b065c69f4311f3ac2b555a9d952e4daab62ad Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Thu, 02 Jul 2020 13:28:06 +0800 Subject: [PATCH] update --- src/main/webapp/view/newmap.jsp | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/view/newmap.jsp b/src/main/webapp/view/newmap.jsp index 205811d..d3e7710 100644 --- a/src/main/webapp/view/newmap.jsp +++ b/src/main/webapp/view/newmap.jsp @@ -677,7 +677,7 @@ if (typeof (WebSocket) === "undefined") { alert("������������������������WebSocket"); } else { - ws = new WebSocket('ws://' + hostAndPort + '/screen/webSocket/' + orgId + '&' + accountId); + ws = new WebSocket('ws://' + hostAndPort + '/screen/webSocket/' + orgId + '&' + accountId+'_'+regionCode); ws.onopen = function () { }; @@ -685,9 +685,9 @@ ws.onmessage = function (msg) { // $("#searchParam").val(JSON.parse(msg.data)); moralMap.refreshWindDir(JSON.parse(JSON.parse(msg.data))); - if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") { + /* if (moralMap.showSensors && typeof (moralMap.showSensors) == "function") { moralMap.showSensors(JSON.parse(JSON.parse(msg.data))); - } + }*/ }; //������������ @@ -812,7 +812,7 @@ var states = jsonData.states; moralMap.refreshState(states); } else if ("DeliverSensors" == methodName) { - // moralMap.showSensors(jsonData); + moralMap.showSensors(jsonData); } } </script> -- Gitblit v1.8.0