Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
徐炜
8 years ago
Commit
13007625e9d2231b1ed06c9113840aeca0f7ff09
1 parent
a285868f
爬虫限制重构规则策略
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
doraemon/middleware/limiter/index.js
doraemon/middleware/limiter/index.js
View file @
1300762
...
...
@@ -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
;
...
...
Please
register
or
login
to post a comment