diff --git "a/app/providers/\344\272\272\344\272\272\350\275\246.js" "b/app/providers/\344\272\272\344\272\272\350\275\246.js" new file mode 100644 index 0000000..b1724a6 --- /dev/null +++ "b/app/providers/\344\272\272\344\272\272\350\275\246.js" @@ -0,0 +1,23 @@ +const Provider = require('../provider'); +const utils = require('../utils'); + +module.exports = class extends Provider { + constructor() { + super(); + this.url = `https://www.renrenche.com/`; + } + async resolve(ctx) { + const options = ctx.options; + const page = ctx.page; + + await page.click('.js-login.login .log-status'); + + await page.type('input[name="phone"]', options.phone, { delay: 100 }); + + await utils.sleep(1000); + + await page.click('.verify-btn'); + + // 检验是否发送成功 + } +};