From 257dab929c69df9c04d1b9c6ee015ab98bd7ea6a Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 08 三月 2024 14:57:33 +0800 Subject: [PATCH] 1 --- ExportMap/js/config.js | 48 +++++++++++++----------------------------------- 1 files changed, 13 insertions(+), 35 deletions(-) diff --git a/ExportMap/js/config.js b/ExportMap/js/config.js index eea89ee..3ec4961 100644 --- a/ExportMap/js/config.js +++ b/ExportMap/js/config.js @@ -6,40 +6,20 @@ var isWeb = location.hostname.indexOf("103.") == 0; // 103.135.160.14 -var isHttps = location.protocol.toLowerCase() == "https:"; - - - - - - - - var host = location.protocol + "//" + location.hostname; // http://192.168.11.205 -var webHost = location.origin; // http://192.168.11.205:8088 - -if (isLocal) { - host = "http://192.168.11.205"; - webHost = host + ":8088"; +var webHost, iisHost, fmeHost; +if (location.protocol.toLowerCase() == "https:") { + fmeHost = iisHost = webHost = location.origin; +} else { + webHost = location.origin; // http://192.168.11.205:8088 + if (isLocal) { + host = "http://192.168.11.205"; + webHost = host + ":8088"; + } + iisHost = host + (isWeb ? ":9027" : ":80"); // http://192.168.11.205:80 + fmeHost = host + (isWeb ? ":9028" : ":88"); // http://192.168.11.205:88 } - -var iisHost = host + (isWeb ? ":9027" : ":80"); // http://192.168.11.205:80 - -var fmeHost = host + (isWeb ? ":9028" : ":88"); // http://192.168.11.205:88 - - - - - - - - - - - - - var LFData = iisHost + "/LFData"; @@ -83,13 +63,11 @@ }; // 宸ョ偣淇℃伅琛� -var workSite = [ - { +var workSite = [{ name: "鍕樺療淇℃伅琛�", table: "s_survey_information", ns: 'bs' - } -]; +}]; var dirTemplateFile = '宸ョ▼椤圭洰-鐩綍绠$悊妯20230613.xlsx'; -- Gitblit v1.9.3