Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
马玮
/
carspider
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c96c86c7
authored
Aug 30, 2017
by
马玮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Op ignore
parent
dffefbdf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
config/.gitignore
+2
-1
lib/spider/dealer/Autohome.js
+13
-9
No files found.
config/.gitignore
View file @
c96c86c7
!
production.toml
production.toml
!.gitignore
!.gitignore
\ No newline at end of file
lib/spider/dealer/Autohome.js
View file @
c96c86c7
...
@@ -28,16 +28,20 @@ class Autohome extends Base {
...
@@ -28,16 +28,20 @@ class Autohome extends Base {
}
}
async
execute
()
{
async
execute
()
{
switch
(
this
.
params
.
task
)
{
try
{
case
'login'
:
{
switch
(
this
.
params
.
task
)
{
await
this
.
login
();
case
'login'
:
{
}
return
await
this
.
login
();
case
'tryLogin'
:
{
}
await
this
.
tryLogin
();
case
'tryLogin'
:
{
}
return
await
this
.
tryLogin
();
case
'fetchClues'
:
{
}
await
this
.
fetchClues
();
case
'fetchClues'
:
{
return
await
this
.
fetchClues
();
}
}
}
}
catch
(
e
)
{
logger
.
fatal
(
`accountID:
${
this
.
params
.
accountID
}
, 系统异常:
${
e
}
`
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment