From 12075d0fa73d963ff5d6dbc4727fb95fb6084961 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期五, 01 三月 2024 09:32:40 +0800 Subject: [PATCH] 代码更新 --- public/config/config.js | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/public/config/config.js b/public/config/config.js index 1287d4d..cb4a750 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -1,19 +1,18 @@ -//鏄惁涓虹敓浜х幆澧� -var isWeb = location.hostname.indexOf("103.85.165.") > -1; +锘�//鏄惁涓虹敓浜х幆澧� +var isWeb = location.hostname.indexOf("172.") > -1; //鏄惁涓虹敓浜х幆澧� const webUrl = location.href.indexOf("/web") > -1 ? "/web" : ""; -// var webHost = isWeb ? "103.85.165.99" + ":28888" : '106.120.22.35' + ":28888"; -var webHost = isWeb ? "103.85.165.99" + ":28888" : '192.168.20.83' + ":8888"; -// var webHost = isWeb ? "103.85.165.99" + ":28888" : '100.10.1.169' + ":8088"; -var imageUrl = "http://localhost:8080"+webUrl +var webHost = isWeb ? "172.16.2.10" + ":10088" : '100.10.1.169' + ":8088"; + +var webArcgis = isWeb? "172.16.2.10" + ":26081" : '100.10.1.169' + ":6080" // WebSocket 鏈嶅姟鍦板潃 var socketUrl = 'ws://' + webHost + '/MoonServer/ws/select'; //閰嶇疆鏂囦欢鍦板潃 const config = { mapMoon: webUrl + "/mapscreen/index.html", - //鍧″害鍒嗘瀽鍥惧眰 - esri: 'http://192.168.22.198:6080/arcgis/services/鏃犳爣棰�/MapServer/WMSServer?', + //鍧″害鍒嗘瀽鍥惧眰 + esri: 'http://'+ webArcgis +'/arcgis/services/moonnew/CE2DEM_slope2/MapServer/WMSServer?', //SDK璁稿彲 StaticFileBaseUrl: webUrl + "/WebSDK/", @@ -27,3 +26,4 @@ [">=", ">", " =", "<=", "<", "<>"], ], }; + -- Gitblit v1.9.3