optimization on sliding captcha
This commit is contained in:
@@ -730,10 +730,9 @@ class CommandorPage {
|
||||
if (isSuccessful) {
|
||||
checkResult = await this.ocrChecker.get_result();
|
||||
} else {
|
||||
await this.checkResultWithOcr()
|
||||
// this.isTerminated = true
|
||||
}
|
||||
// await this.checkResultWithOcr()
|
||||
this.isTerminated = true
|
||||
}
|
||||
})
|
||||
await delay(10 * 1000)
|
||||
}
|
||||
|
||||
@@ -117,9 +117,8 @@ class OCRChecker {
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
return OCRResult.RECHECK
|
||||
return OCRResult.TERMINAED
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
async take_screen_shot() {
|
||||
|
||||
Reference in New Issue
Block a user