Skip to content

Commit

Permalink
fix: 书从provider没有正确检测是否发送短信成功
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Dec 3, 2017
1 parent 0bd61bd commit dd9b7a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/providers/书丛.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ module.exports = class extends Provider {

await page.click('button#code_phone');

// await page.waitForSelector('button#code_phone', { timeout: 1000 * 3 });
try {
await page.waitForSelector('button#code_phone[disabled]', { timeout: 1000 * 3 });
} catch (err) {
throw null;
}
}
};
1 change: 0 additions & 1 deletion app/providers/企查查.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module.exports = class extends Provider {
constructor() {
super();
this.url = `http://www.qichacha.com/user_register`;
this.alone = true;
}

async resolve(ctx) {
Expand Down

0 comments on commit dd9b7a0

Please sign in to comment.