Commit c7b520f9 by 马玮

Update .gitignore

parent a9233a5a
!/tmp/workflow
/tmp/captcha/* /tmp/captcha/*
/tmp/workflow/* /tmp/workflow/*
/logs/dealer/* /logs/dealer/*
\ No newline at end of file
...@@ -48,6 +48,7 @@ class Autohome extends Base { ...@@ -48,6 +48,7 @@ class Autohome extends Base {
async tryLogin() { async tryLogin() {
// 随机返回登录状态 // 随机返回登录状态
// return [new errors.TryLoginError('登录失效'), randomInt(0, 1)]; // return [new errors.TryLoginError('登录失效'), randomInt(0, 1)];
try {
let newCookies; let newCookies;
let oldCookies; let oldCookies;
let loginStatus = false; let loginStatus = false;
...@@ -87,6 +88,9 @@ class Autohome extends Base { ...@@ -87,6 +88,9 @@ class Autohome extends Base {
} else { } else {
throw new errors.TryLoginError('登录失效'); throw new errors.TryLoginError('登录失效');
} }
} catch (e) {
}
} }
async login() { async login() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment