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

更新项目文档;一些小改动

This commit is contained in:
2023-04-19 01:03:54 +08:00
parent 68217b81dc
commit d4edba9212
5 changed files with 203 additions and 45 deletions

View File

@@ -1,5 +1,6 @@
// 定义常量
const url = "https://epp.only4.work/access/wechat/getUnlimitedQRCode"
const baseUrl = "https://epp.only4.work/"
const url = baseUrl + "access/wechat/getUnlimitedQRCode"
const page = "pages/index/index" // "pages/scan/entrance"
const envVersion = "develop" // 正式版为 "release",体验版为 "trial",开发版为 "develop"
const autoColor = true
@@ -102,7 +103,7 @@ window.changePanelSelectGate = changePanelSelectGate
// 发送请求,获取大门列表
async function getGateList() {
const response = await fetch('https://epp.only4.work/access/gate/guard-client/getGateList');
const response = await fetch(baseUrl + 'access/gate/guard-client/getGateList');
const data = await response.json();
return data.data;
}