diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 99a3214..ef0c8f8 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -1073,10 +1073,12 @@ class CommandorPage { case OCRResult.TO_SKIP : logWithDevice("TO_SKIP", this.device) - if (this.device.model() === "21091116C") - await this.device.shell("input tap " + 530 + " " + 1742) - else - await this.device.shell("input tap " + 488 + " " + 1848) + if (this.device.model() === "21091116C" || this.device.model() === "22041219PG") { + await this.tapForDevice(this.device, 530, 1742) + await delay(1000); + await this.tapForDevice(this.device, 530, 1742) + } else + await this.tapForDevice(this.device, 488, 1848) await delay(2000); await this.checkResultWithOcr(); break; @@ -1131,8 +1133,6 @@ class CommandorPage { await this.tapLaterBtn() await delay(5000) await this.checkResultWithOcr(); - // this.firstStart = true; - // await this.loadPage() break; case OCRResult.CLOSED @@ -1453,6 +1453,10 @@ class CommandorPage { this.device.shell("input tap " + 535 + " " + 1930) await delay(1000); this.device.shell("input tap " + 535 + " " + 1930) + } else if (model === "DE2117") { + await this.tapForDevice(this.device, 529, 2050) + await delay(1000) + await this.tapForDevice(this.device, 529, 2050) } else if (model === "22041219PG") { this.device.shell("input tap " + 540 + " " + 1985) } else if (model === "21091116C") { diff --git a/src/workers/SlidingCaptchaSolver.js b/src/workers/SlidingCaptchaSolver.js index 0bf6985..db88a4e 100644 --- a/src/workers/SlidingCaptchaSolver.js +++ b/src/workers/SlidingCaptchaSolver.js @@ -5,8 +5,10 @@ const axios = require("axios"); const {v4: uuidv4} = require('uuid'); const OCRResult = require("../models/OCRResult"); -const DEEPLEARNING_CAPTCHA_HOST = "http://appointment.lpaconsulting.fr:9000" +// const DEEPLEARNING_CAPTCHA_HOST = "http://appointment.lpaconsulting.fr:9000" // const DEEPLEARNING_CAPTCHA_HOST = "http://192.168.1.200:9000" +const DEEPLEARNING_CAPTCHA_HOST = "http://192.168.0.44:9000" + function delay(delayInMs) { return new Promise(resolve => {