support chrome

This commit is contained in:
2024-09-22 23:29:23 +02:00
parent 87910a6524
commit ac60977177
2 changed files with 13 additions and 7 deletions
+10 -6
View File
@@ -1073,10 +1073,12 @@ class CommandorPage {
case OCRResult.TO_SKIP case OCRResult.TO_SKIP
: :
logWithDevice("TO_SKIP", this.device) logWithDevice("TO_SKIP", this.device)
if (this.device.model() === "21091116C") if (this.device.model() === "21091116C" || this.device.model() === "22041219PG") {
await this.device.shell("input tap " + 530 + " " + 1742) await this.tapForDevice(this.device, 530, 1742)
else await delay(1000);
await this.device.shell("input tap " + 488 + " " + 1848) await this.tapForDevice(this.device, 530, 1742)
} else
await this.tapForDevice(this.device, 488, 1848)
await delay(2000); await delay(2000);
await this.checkResultWithOcr(); await this.checkResultWithOcr();
break; break;
@@ -1131,8 +1133,6 @@ class CommandorPage {
await this.tapLaterBtn() await this.tapLaterBtn()
await delay(5000) await delay(5000)
await this.checkResultWithOcr(); await this.checkResultWithOcr();
// this.firstStart = true;
// await this.loadPage()
break; break;
case case
OCRResult.CLOSED OCRResult.CLOSED
@@ -1453,6 +1453,10 @@ class CommandorPage {
this.device.shell("input tap " + 535 + " " + 1930) this.device.shell("input tap " + 535 + " " + 1930)
await delay(1000); await delay(1000);
this.device.shell("input tap " + 535 + " " + 1930) 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") { } else if (model === "22041219PG") {
this.device.shell("input tap " + 540 + " " + 1985) this.device.shell("input tap " + 540 + " " + 1985)
} else if (model === "21091116C") { } else if (model === "21091116C") {
+3 -1
View File
@@ -5,8 +5,10 @@ const axios = require("axios");
const {v4: uuidv4} = require('uuid'); const {v4: uuidv4} = require('uuid');
const OCRResult = require("../models/OCRResult"); 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.1.200:9000"
const DEEPLEARNING_CAPTCHA_HOST = "http://192.168.0.44:9000"
function delay(delayInMs) { function delay(delayInMs) {
return new Promise(resolve => { return new Promise(resolve => {