From 1ce1b525e7470ebaaeb0d5cd1e59bd905c1a7114 Mon Sep 17 00:00:00 2001 From: surprise <15810472099@163.com> Date: 星期二, 05 三月 2024 18:07:32 +0800 Subject: [PATCH] 代码更新 --- public/config/config.js | 40 +++++++++++++++++++++++++++++----------- 1 files changed, 29 insertions(+), 11 deletions(-) diff --git a/public/config/config.js b/public/config/config.js index 153d3d7..1497e8c 100644 --- a/public/config/config.js +++ b/public/config/config.js @@ -1,14 +1,24 @@ -//var isWeb = location.hostname.indexOf("103.85.165.") > -1; -var isWeb = false; +var isWeb = location.hostname.indexOf("103.135.160.") > -1; +// var isWeb = false; +//鏄惁涓虹敓浜х幆澧� +var webUrl = location.href.indexOf("/web") > -1 ? "/web" : ""; var is_production = false;//鍒ゆ柇鏄惁涓虹敓浜х幆澧� //192.168.21.194 -var isUrl = isWeb ? "103.85.165.99" : '192.168.20.53'; -var webHost = isWeb ? isUrl + ":8052" : isUrl + ":12316"; +var isUrl = isWeb ? "103.135.160.14" : '192.168.11.14'; +var webHost = isWeb ? isUrl + ":9036" : isUrl + ":12316"; -var geoHost = isWeb ? isUrl + ":8052" : isUrl + ":8888"; +var geoHost = isWeb ? isUrl + ":9036" : isUrl + ":9055"; -var fmeHost = isWeb ? isUrl + ":8051" : isUrl + ":88"; +var fmeHost = isWeb ? isUrl + ":9036" : isUrl + ":88"; -var iisHost = isWeb ? isUrl + ":8050" : isUrl + ":80"; +var iisHost = isWeb ? isUrl + ":9036" : isUrl + ":80"; + +var knowHost = isWeb ? isUrl + ":9036" : isUrl + ":8080"; + +var imgHost =isWeb ? isUrl + ":9036" : isUrl + ":8888"; + +var pwiwangHost = isWeb ? isUrl + ":9036" : isUrl + ":80"; + +var BASEHost = isWeb ? isUrl + ":9036" : isUrl + ":8000"; var menuStartName = "閰嶇綉涓�浣撳寲鏅烘収鎸囨尌鑸�"; @@ -16,13 +26,20 @@ var BASE_URL = 'http://' + webHost + '/server'; +var BASE_PW_URL ='http://' + pwiwangHost + '/peiwang'; + +var BASE_Fast_URL ='http://' + BASEHost + '/py'; // WebSocket 鏈嶅姟鍦板潃 var socketUrl = 'ws://' + webHost + '/server/ws/select'; - // GeoServerUrl -var geoServerURl = 'http://' + geoHost + '/geoserver/sxpw/wms'; +var geoUrl = 'http://' + geoHost + '/geoserver/sxpw'; +// 鐭ヨ瘑鍥捐氨鍦板潃 +var knowledgeUrl ='http://' + knowHost + '/kg/'; -var geoserverWFS = '/geoserver/sxpw/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Abs_project&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; +var imgUrl ='http://' + imgHost + '/'; +var geoServerURl = geoUrl + '/wms'; +var geoserverWFS_1 = geoUrl + '/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=' ; +var geoserverWFS_2 = '&maxFeatures=50&outputFormat=application%2Fjson&cql_filter='; var geoserverWFSLine = '/geoserver/sxpw/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=LF%3Am_pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=projname='; @@ -34,8 +51,9 @@ // 缁煎悎灞曠ず window.sceneConfig = { + licenseServer:webUrl + "/CimSDK/", // Sdk璁稿彲 - licenseServer: 'http://' + iisHost + '/LFServer', + // licenseServer: 'http://' + iisHost + '/LFServer', // MPT鍚嶇О mptName: "china_5m.Ei.397334", // SG鍦板潃 -- Gitblit v1.9.3