Authored by 徐炜

爬虫限制重构规则策略

... ... @@ -48,6 +48,8 @@ module.exports = (req, res, next) => {
]).then((results) => {
let allPass = true, exclusion = false, policy = null;
logger.info('limiter result: ' + results);
_.forEach(results, (result) => {
if (typeof result === 'object' && !exclusion) {
exclusion = result.exclusion;
... ...