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