ZhuDongming
2020-06-22 6af4ca37a5fa72cedaadfc202e56c9729353fe0a
src/main/webapp/view/newmap.jsp
@@ -366,6 +366,8 @@
<script>
    //页面初始化
    (function ($) {
        var hostAndPort = document.location.host;
        var hostAddress = hostAndPort.substr(0, hostAndPort.length - 4);
        var moralMap = window.moralMap;
        var params = $.parseJSON($("#mapParams").html());
        moralMap['params'] = params;
@@ -642,7 +644,7 @@
        if (typeof (WebSocket) === "undefined") {
            alert("您的浏览器不支持WebSocket");
        } else {
            ws = new WebSocket('ws://47.96.15.25:8080/screen/webSocket/' + orgId + '&' + regionCode);
            ws = new WebSocket('ws://' + hostAddress + '8080/screen/webSocket/' + orgId + '&' + regionCode);
            ws.onopen = function () {
            };