From 24df9fae835b5b0da7c1401d73a3576c85edd30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Tue, 18 Apr 2023 03:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=BA=E7=BA=BF=E4=B8=8A?= =?UTF-8?q?=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/static/access/assets/js/websocket.js | 2 +- .../src/main/resources/static/access/renderer.js | 4 ++-- client-entrance-guard/html/index.html | 2 +- frontend/src/utils/settings.js | 2 +- miniprogram/src/app.js | 2 +- nginx-conf/nginx.conf | 2 +- weixin-miniprogram/app.js | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/websocket.js b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/websocket.js index 92625c9..1ca0ff1 100644 --- a/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/websocket.js +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/assets/js/websocket.js @@ -1,4 +1,4 @@ -window.wsUrl = 'wss://epp.only4.work/access/websocket/1'; +window.wsUrl = 'wss://epp-prod.only4.work/access/websocket/1'; // window.wsUrl = 'ws://127.0.0.1:80/access/websocket/1'; // window.wsUrl = 'ws://127.0.0.1:8002/access/websocket/1'; diff --git a/backend/microservice-provider-access-8002/src/main/resources/static/access/renderer.js b/backend/microservice-provider-access-8002/src/main/resources/static/access/renderer.js index d9a0272..7120f1e 100644 --- a/backend/microservice-provider-access-8002/src/main/resources/static/access/renderer.js +++ b/backend/microservice-provider-access-8002/src/main/resources/static/access/renderer.js @@ -1,5 +1,5 @@ // 定义常量 -const url = "https://epp.only4.work/access/wechat/getUnlimitedQRCode" +const url = "https://epp-prod.only4.work/access/wechat/getUnlimitedQRCode" const page = "pages/index/index" // "pages/scan/entrance" const envVersion = "develop" // 正式版为 "release",体验版为 "trial",开发版为 "develop" const autoColor = true @@ -102,7 +102,7 @@ window.changePanelSelectGate = changePanelSelectGate // 发送请求,获取大门列表 async function getGateList() { - const response = await fetch('https://epp.only4.work/access/gate/guard-client/getGateList'); + const response = await fetch('https://epp-prod.only4.work/access/gate/guard-client/getGateList'); const data = await response.json(); return data.data; } diff --git a/client-entrance-guard/html/index.html b/client-entrance-guard/html/index.html index e8f3686..7a28c48 100644 --- a/client-entrance-guard/html/index.html +++ b/client-entrance-guard/html/index.html @@ -11,7 +11,7 @@
- + diff --git a/frontend/src/utils/settings.js b/frontend/src/utils/settings.js index f0fb695..605a7b8 100644 --- a/frontend/src/utils/settings.js +++ b/frontend/src/utils/settings.js @@ -23,5 +23,5 @@ export default { * 后端接口请求地址 * (结尾加不加 / 都可) */ - backendHost: "https://epp.only4.work/", + backendHost: "https://epp-prod.only4.work/", }; diff --git a/miniprogram/src/app.js b/miniprogram/src/app.js index a899384..dd6cb27 100644 --- a/miniprogram/src/app.js +++ b/miniprogram/src/app.js @@ -12,7 +12,7 @@ App.use(setGlobalDataPlugin, { globalData: { debugMode: true, // 是否展示调试内容 baseUrl: true - ? "https://epp.only4.work" + ? "https://epp-prod.only4.work" : "http://localhost", // 不带最后的 / } }) diff --git a/nginx-conf/nginx.conf b/nginx-conf/nginx.conf index 5f2754c..149ccbb 100644 --- a/nginx-conf/nginx.conf +++ b/nginx-conf/nginx.conf @@ -1,6 +1,6 @@ server { - server_name epp.only4.work; + server_name epp-prod.only4.work; listen 80; listen 443 ssl http2; diff --git a/weixin-miniprogram/app.js b/weixin-miniprogram/app.js index 521442f..460d0bd 100644 --- a/weixin-miniprogram/app.js +++ b/weixin-miniprogram/app.js @@ -23,7 +23,7 @@ App({ globalData: { // debugMode: true, // 是否展示调试内容 baseUrl: true ? // Api 请求域名 不带最后的 / - "https://epp.only4.work" : + "https://epp-prod.only4.work" : "http://localhost", userInfo: null }