Skip to content

Commit

Permalink
fix: lofter provider没有正确检测是否发送短信成功
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Dec 3, 2017
1 parent 4e6c736 commit 6e339f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/providers/lofter.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = class extends Provider {
await page.click('#btn-auth');

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

0 comments on commit 6e339f3

Please sign in to comment.