optimization on sliding captcha

This commit is contained in:
Lei PAN
2023-06-02 15:45:48 +02:00
parent d45199cfe6
commit 037cf4d486
2 changed files with 3 additions and 5 deletions
+2 -3
View File
@@ -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)
} }
+1 -2
View File
@@ -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() {