Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
spider-ufo
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
lzhy
5 years ago
Commit
0a76ea45f2b7ecc685bf1110409291873f95a083
1 parent
3bce3533
修改队列间隔时间
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
tasks/spider-task.js
tasks/spider-task.js
View file @
0a76ea4
...
...
@@ -53,7 +53,7 @@ module.exports = async(time) => {
logger
.
info
(
`
[
spiderTask
]
time
:
$
{
time
},
product_number
:
$
{
sknsData
&&
sknsData
.
length
}
`
);
var
n
=
0
;
spider
(
sknsData
.
map
(
p
=>
p
.
productId
),
''
,
{},
1
000
)
spider
(
sknsData
.
map
(
p
=>
p
.
productId
),
''
,
{},
2
000
)
.
forEach
(
promise
=>
promise
.
then
(
result
=>
{
n
++
;
if
(
n
==
sknsData
.
length
)
{
...
...
Please
register
or
login
to post a comment