diff --git a/utils/api.js b/utils/api.js index 336688d..8f709b8 100644 --- a/utils/api.js +++ b/utils/api.js @@ -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