Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OPENTECH
/
yoho-node-ci
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
2
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
d1a2db2dd9c86283fae9edb2d6c79a820f592175
1 parent
bfb52ad5
add 开关
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
apps/models/degrade.js
apps/web/actions/crawler.js
apps/models/degrade.js
View file @
d1a2db2
...
...
@@ -128,6 +128,10 @@ const defaultDegrades = [
{
path
:
'/wap/geetest/validation'
,
name
:
'【开关】关闭极验证验证码'
},
{
path
:
'/wap/close/passwordLogin'
,
name
:
'【开关】关闭账号密码登录'
}
];
...
...
apps/web/actions/crawler.js
View file @
d1a2db2
...
...
@@ -111,7 +111,7 @@ const makeServer = ((ipKey, uaKey, listName, black) => {
await
Promise
.
all
(
_
.
map
(
hosts
,
(
h
)
=>
{
const
key
=
`
pc
:
limiter
:
$
{
ip
}
`
,
value
=
9999
,
ttl
=
60
*
60
*
8
;
// 封停8小时
ttl
=
60
*
60
*
24
*
30
;
// 封停一月
return
(
new
ApiCache
(
h
.
host
)).
setKey
(
key
,
value
,
ttl
);
}));
...
...
Please
register
or
login
to post a comment