Commit c96c86c7 by 马玮

Op ignore

parent dffefbdf
!production.toml production.toml
!.gitignore !.gitignore
\ No newline at end of file
...@@ -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}`);
} }
} }
......
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