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
c7b520f9
authored
Aug 25, 2017
by
马玮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitignore
parent
a9233a5a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
.gitignore
+2
-0
lib/spider/dealer/Autohome.js
+4
-0
No files found.
.gitignore
View file @
c7b520f9
!/tmp/workflow
/tmp/captcha/*
/tmp/workflow/*
/logs/dealer/*
\ No newline at end of file
lib/spider/dealer/Autohome.js
View file @
c7b520f9
...
...
@@ -48,6 +48,7 @@ class Autohome extends Base {
async
tryLogin
()
{
// 随机返回登录状态
// return [new errors.TryLoginError('登录失效'), randomInt(0, 1)];
try
{
let
newCookies
;
let
oldCookies
;
let
loginStatus
=
false
;
...
...
@@ -87,6 +88,9 @@ class Autohome extends Base {
}
else
{
throw
new
errors
.
TryLoginError
(
'登录失效'
);
}
}
catch
(
e
)
{
}
}
async
login
()
{
...
...
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