...
|
...
|
@@ -20,7 +20,7 @@ const logger = global.yoho.logger; |
|
|
|
|
|
const TYPE = require('./type');
|
|
|
|
|
|
const DIR = './rule/';
|
|
|
const DIR = './rules/';
|
|
|
|
|
|
const curDir = path.resolve(__dirname, DIR);
|
|
|
const files = fs.readdirSync(curDir);
|
...
|
...
|
@@ -38,7 +38,7 @@ files.forEach((file) => { |
|
|
try {
|
|
|
domainRules[module] = require(loadPath);
|
|
|
} catch (e) {
|
|
|
logger.error('load rule wrong', e);
|
|
|
logger.error('load rules wrong', e);
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
|