feat(salon): 支持散客预约拨号并发布协议新版本强制重新同意
自动发布开发环境 Nacos 配置 / publish (push) Successful in 23s

This commit is contained in:
2026-11-04 23:38:42 +08:00
parent 114a8a423c
commit 88589e2575
22 changed files with 602 additions and 44 deletions
+9 -4
View File
@@ -47,14 +47,19 @@ module.exports = {
},
/**
* 后台按预约/订单上下文单次取号,号码不入库、不缓存。
* 后台按预约/订单上下文单次取号,号码不入库、不缓存;散客可不传 customerId。
*/
dialCustomer(customerId, orderId) {
dialCustomer(params) {
const source = params || {}
const query = {}
if (source.customerId) query.customerId = source.customerId
if (source.appointmentId) query.appointmentId = source.appointmentId
if (source.orderId) query.orderId = source.orderId
return request({
url: `/manager/customers/${customerId}/dial`,
url: '/manager/customers/dial',
method: 'POST',
data: {},
params: { orderId }
params: query
})
},