Authored by 徐炜

爬虫限制重构规则策略

... ... @@ -11,11 +11,7 @@ const IP_WHITE_LIST = [
];
const limiter = (rule, policy, context) => {
return rule({
req: context.req,
res: context.res,
next: context.next
}, policy);
return rule(context, policy);
};
module.exports = (req, res, next) => {
... ...