Skip to content

Commit

Permalink
fix: 修复世界邦服务提供者,发送短信不正确的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Oct 29, 2017
1 parent 615b464 commit 0f8ad67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/providers/世界邦.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ module.exports = class extends Provider {
constructor() {
super();
this.url = `http://www.shijiebang.com/reg/`;
this.alone = true;
}
async resolve(ctx) {
const options = ctx.options;
const page = ctx.page;

await page.waitForSelector('input[type="mobile"]', { timeout: 1000 * 3 });
await page.type('input[type="mobile"]', options.phone, { delay: 50 });
await page.waitForSelector('input[name="mobile"]', { timeout: 1000 * 3 });
await page.type('input[name="mobile"]', options.phone, { delay: 50 });

await utils.sleep(500);

Expand Down

0 comments on commit 0f8ad67

Please sign in to comment.