support redmi 12 note pro

This commit is contained in:
2023-06-06 15:40:23 +02:00
parent 9d705908eb
commit 5c7ef11668
+8 -1
View File
@@ -222,6 +222,8 @@ class CommandorPage {
if (this.firstStart) { if (this.firstStart) {
this.disconnectBrowser() this.disconnectBrowser()
} }
await delay(2000)
await this.checkResultWithOcr();
} catch (e) { } catch (e) {
console.log(e) console.log(e)
} }
@@ -817,7 +819,10 @@ class CommandorPage {
OCRResult.TO_SKIP OCRResult.TO_SKIP
: :
logWithDevice("TO_SKIP", this.device) logWithDevice("TO_SKIP", this.device)
this.device.shell("input tap " + 488 + " " + 1848) if (this.device.model() === "21091116C")
this.device.shell("input tap " + 530 + " " + 1742)
else
this.device.shell("input tap " + 488 + " " + 1848)
await delay(2000); await delay(2000);
break; break;
case case
@@ -965,6 +970,8 @@ class CommandorPage {
this.device.shell("input tap " + 550 + " " + 1920) this.device.shell("input tap " + 550 + " " + 1920)
} else if (model === "ONEPLUS A6000") { } else if (model === "ONEPLUS A6000") {
this.device.shell("input tap " + 535 + " " + 1945) this.device.shell("input tap " + 535 + " " + 1945)
} else if (model === "21091116C") {
this.device.shell("input tap " + 510 + " " + 1975)
} else if (model === "MI 5s") { } else if (model === "MI 5s") {
this.device.shell("input tap " + 510 + " " + 1615) this.device.shell("input tap " + 510 + " " + 1615)
} else } else