From 551ef3fa97ac6f49ff610a1e3af7e25cda239ed6 Mon Sep 17 00:00:00 2001 From: axetroy Date: Sun, 3 Dec 2017 20:44:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E7=9B=9F?= =?UTF-8?q?=E6=9C=AA=E6=AD=A3=E7=A1=AE=E6=A3=80=E6=B5=8Bprovider=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "app/providers/\345\276\256\347\233\237.js" | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git "a/app/providers/\345\276\256\347\233\237.js" "b/app/providers/\345\276\256\347\233\237.js" index 633ae32..43f1463 100644 --- "a/app/providers/\345\276\256\347\233\237.js" +++ "b/app/providers/\345\276\256\347\233\237.js" @@ -17,9 +17,11 @@ module.exports = class extends Provider { await page.click('a.getcode'); - // // 检验是否发送成功 - // await page.waitForSelector('a.getcode.disabled', { - // timeout: 1000 * 3, - // }); + // 检验是否发送成功 + try { + await page.waitForSelector('a.getcode.disabled', { timeout: 1000 * 3 }); + } catch (err) { + throw null; + } } };