Skip to content

Commit

Permalink
feat: add 麦付宝 provider
Browse files Browse the repository at this point in the history
  • Loading branch information
WindomZ committed Dec 2, 2017
1 parent 130b62d commit 88a1f58
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/providers/麦付宝.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
'use strict';

const Provider = require('../provider');
const utils = require('../utils');

module.exports = class extends Provider {
constructor() {
super();
this.url = `https://www.maifupay.com/register`;
}

async resolve(ctx) {
const options = ctx.options;
const page = ctx.page;

await page.type('input.form-control', options.phone, { delay: 100 });

await page.click('span.input-group-btn button:first-child');

// await page.waitForSelector('span.input-group-btn button:first-child[disabled]', { timeout: 1000 * 3 });
}
};

0 comments on commit 88a1f58

Please sign in to comment.