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 5462e4b commit 551ef3f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/providers/微盟.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ module.exports = class extends Provider {

await page.click('a.getcode');

// // 检验是否发送成功
// await page.waitForSelector('a.getcode.disabled', {
// timeout: 1000 * 3,
// });
// 检验是否发送成功
try {
await page.waitForSelector('a.getcode.disabled', { timeout: 1000 * 3 });
} catch (err) {
throw null;
}
}
};

0 comments on commit 551ef3f

Please sign in to comment.