feat: 添加预约核销功能
This commit is contained in:
+5
-7
@@ -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
@@ -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'
|
||||
}
|
||||
|
||||
// 自动判断当前运行环境
|
||||
|
||||
Reference in New Issue
Block a user