From 19a4741002f4208bf7fc951cbf3219897af5699a Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期四, 26 十月 2023 16:41:22 +0800
Subject: [PATCH] 标绘查询修改

---
 public/config/config.js |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/public/config/config.js b/public/config/config.js
index 4d67337..2559267 100644
--- a/public/config/config.js
+++ b/public/config/config.js
@@ -1 +1,27 @@
-const BASE_URL = "http://127.0.0.1:9999/api/moonProject/"; //鍚庣鎺ュ彛鍦板潃
+//鏄惁涓虹敓浜х幆澧�
+var isWeb = location.hostname.indexOf("103.85.165.") > -1;
+//鏄惁涓虹敓浜х幆澧�
+const webUrl = location.href.indexOf("/web") > -1 ? "/web" : "";
+
+// var webHost = isWeb ? "103.85.165.99" + ":28888" : '192.168.20.106' + ":9000";
+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";
+// WebSocket 鏈嶅姟鍦板潃
+var socketUrl = 'ws://' + webHost + '/MoonServer/ws/select';
+//閰嶇疆鏂囦欢鍦板潃
+const config = {
+  mapMoon: webUrl + "/mapscreen/index.html",
+
+  //SDK璁稿彲
+  StaticFileBaseUrl: webUrl + "/WebSDK/",
+
+  proxy: "http://" + webHost + "/MoonServer",
+
+  BASE_URL: "http://" + webHost + "/MoonServer",
+
+  conditions: [
+    ["=", "<>", "like"],
+    [">=", ">", " =", "<=", "<", "<>"],
+    [">=", ">", " =", "<=", "<", "<>"],
+  ],
+};

--
Gitblit v1.9.3