Update api.js

This commit is contained in:
huxuejian 2026-01-29 10:27:48 +08:00
parent 04958553f1
commit 2cf940e0b9

View File

@ -108,7 +108,7 @@ const urlsConfig = {
addServiceRecord: 'addServiceRecord',
updateServiceRecord: 'updateServiceRecord',
removeServiceRecord: 'removeServiceRecord',
sendConsultRejectedMessage: "sendConsultRejectedMessage"
// sendConsultRejectedMessage: "sendConsultRejectedMessage"
}
}
@ -118,7 +118,7 @@ const urls = Object.keys(urlsConfig).reduce((acc, path) => {
keys.forEach((key) => {
const data = acc[key];
if (data) {
throw new Error(`${data[0]}.${data[1]}${path}.${url}重复了`)
throw new Error(`${data[0]}.${data[1]}${path}.${key}重复了`)
}
acc[key] = [path, config[key]]
return acc