diff --git a/index.js b/index.js index d9684af..3fec000 100644 --- a/index.js +++ b/index.js @@ -28,16 +28,6 @@ module.exports = { return JSON.stringify(newEntity) }, - getDynamicConfig(dynamicConfigFile='ConfigDynamic.js') { // dynamicConfigFile should be absolute or relative to the node process's dir. - const fullpath = path.join(process.cwd(), dynamicConfigFile) - if (fs.existsSync(fullpath)) { - delete require.cache[require.resolve(fullpath)] // delete require.cache[fullpath] 不起作用 - return require(fullpath) - } else { - return {} - } - }, - name2port(name='') { let port = name.toLowerCase() .replace(/[abc]/g, 2)