1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

切换为线上域名

This commit is contained in:
程序员小墨 2023-04-18 03:53:35 +08:00
parent cb1b0e4e7e
commit 24df9fae83
7 changed files with 8 additions and 8 deletions

View File

@ -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:80/access/websocket/1';
// window.wsUrl = 'ws://127.0.0.1:8002/access/websocket/1'; // window.wsUrl = 'ws://127.0.0.1:8002/access/websocket/1';

View File

@ -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 page = "pages/index/index" // "pages/scan/entrance"
const envVersion = "develop" // 正式版为 "release",体验版为 "trial",开发版为 "develop" const envVersion = "develop" // 正式版为 "release",体验版为 "trial",开发版为 "develop"
const autoColor = true const autoColor = true
@ -102,7 +102,7 @@ window.changePanelSelectGate = changePanelSelectGate
// 发送请求,获取大门列表 // 发送请求,获取大门列表
async function getGateList() { 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(); const data = await response.json();
return data.data; return data.data;
} }

View File

@ -11,7 +11,7 @@
</head> </head>
<body> <body>
<iframe src="https://epp.only4.work/access/index.html?inElectron=true" frameborder="0"></iframe> <iframe src="https://epp-prod.only4.work/access/index.html?inElectron=true" frameborder="0"></iframe>
<script src="./renderer.js" type="module"></script> <script src="./renderer.js" type="module"></script>
</body> </body>

View File

@ -23,5 +23,5 @@ export default {
* 后端接口请求地址 * 后端接口请求地址
* 结尾加不加 / 都可 * 结尾加不加 / 都可
*/ */
backendHost: "https://epp.only4.work/", backendHost: "https://epp-prod.only4.work/",
}; };

View File

@ -12,7 +12,7 @@ App.use(setGlobalDataPlugin, {
globalData: { globalData: {
debugMode: true, // 是否展示调试内容 debugMode: true, // 是否展示调试内容
baseUrl: true baseUrl: true
? "https://epp.only4.work" ? "https://epp-prod.only4.work"
: "http://localhost", // 不带最后的 / : "http://localhost", // 不带最后的 /
} }
}) })

View File

@ -1,6 +1,6 @@
server server
{ {
server_name epp.only4.work; server_name epp-prod.only4.work;
listen 80; listen 80;
listen 443 ssl http2; listen 443 ssl http2;

View File

@ -23,7 +23,7 @@ App({
globalData: { globalData: {
// debugMode: true, // 是否展示调试内容 // debugMode: true, // 是否展示调试内容
baseUrl: true ? // Api 请求域名 不带最后的 / baseUrl: true ? // Api 请求域名 不带最后的 /
"https://epp.only4.work" : "https://epp-prod.only4.work" :
"http://localhost", "http://localhost",
userInfo: null userInfo: null
} }