sdfdfs
This commit is contained in:
@@ -95,6 +95,7 @@ class CaptchaComp {
|
||||
}
|
||||
|
||||
resolveCaptcha(driver) {
|
||||
if (this.api.working === false) {
|
||||
return this.api.working ? new Promise(r => r(new Error('Resovling Catpcha'))) : this.requestResolve(driver)
|
||||
.then(id => this.getAnswer(id))
|
||||
.then(res => {
|
||||
@@ -103,6 +104,7 @@ class CaptchaComp {
|
||||
return driver.executeScript('captchaCallback("' + res.request + '")').then(() => this.sleep(1000 * 5))
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new CaptchaComp
|
||||
Reference in New Issue
Block a user