From 0f8ad67395b08c242f92ddce7eb51ecc02ca89d0 Mon Sep 17 00:00:00 2001 From: axetroy Date: Sun, 29 Oct 2017 21:25:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=96=E7=95=8C?= =?UTF-8?q?=E9=82=A6=E6=9C=8D=E5=8A=A1=E6=8F=90=E4=BE=9B=E8=80=85=EF=BC=8C?= =?UTF-8?q?=E5=8F=91=E9=80=81=E7=9F=AD=E4=BF=A1=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "app/providers/\344\270\226\347\225\214\351\202\246.js" | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git "a/app/providers/\344\270\226\347\225\214\351\202\246.js" "b/app/providers/\344\270\226\347\225\214\351\202\246.js" index 3a4b76c..2a444f5 100644 --- "a/app/providers/\344\270\226\347\225\214\351\202\246.js" +++ "b/app/providers/\344\270\226\347\225\214\351\202\246.js" @@ -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);