This commit is contained in:
spiduler
2020-11-07 21:22:05 +09:00
parent 7a5ae9ec66
commit 9cc09238b2

View File

@@ -103,7 +103,6 @@ class CaptchaComp {
} }
resolveCaptcha(driver) { resolveCaptcha(driver) {
if (this.api.working === false) {
return this.api.working ? new Promise(r => r(new Error('Resovling Catpcha'))) : this.requestResolve(driver) return this.api.working ? new Promise(r => r(new Error('Resovling Catpcha'))) : this.requestResolve(driver)
.then(id => this.getAnswer(id)) .then(id => this.getAnswer(id))
.then(res => { .then(res => {
@@ -112,7 +111,6 @@ class CaptchaComp {
return driver.executeScript('captchaCallback("' + res.request + '")').then(() => this.sleep(1000 * 5)) return driver.executeScript('captchaCallback("' + res.request + '")').then(() => this.sleep(1000 * 5))
}) })
} }
}
} }
module.exports = new CaptchaComp module.exports = new CaptchaComp