feat: 添加预约核销功能

This commit is contained in:
ws
2026-04-29 18:24:34 +08:00
parent f1d1c9b460
commit 98f5c7bc49
7 changed files with 125 additions and 77 deletions
+5 -7
View File
@@ -200,18 +200,16 @@ const appointmentDB = {
},
/**
* 核销通知被访人
* 核销预约记录(通知被访人访客已到达)
* @param {string} id - 预约记录 id
* @returns {Promise<boolean>}
* @returns {Promise<string>} 操作结果
*/
async notifyHost(id) {
await request({
async notifyHostArrival(id) {
return await request({
url: BASE_URL + API.NOTIFY_HOST,
method: 'POST',
header: { 'content-type': 'application/json' },
method: 'GET',
data: { id }
})
return true
}
}
+2 -2
View File
@@ -6,8 +6,8 @@ const ENV_CONFIG = {
// release: 'https://xcx.yun.588580.xyz',
trial: 'https://qywx.yun.588580.xyz',
// 开发版 & 体验版
// develop: 'http://172.16.60.235:8080'
develop: 'http://10.50.13.191:8080'
develop: 'http://172.16.60.235:8080'
// develop: 'http://10.50.13.191:8080'
}
// 自动判断当前运行环境