support redmi 12 note pro
This commit is contained in:
@@ -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,6 +819,9 @@ class CommandorPage {
|
|||||||
OCRResult.TO_SKIP
|
OCRResult.TO_SKIP
|
||||||
:
|
:
|
||||||
logWithDevice("TO_SKIP", this.device)
|
logWithDevice("TO_SKIP", this.device)
|
||||||
|
if (this.device.model() === "21091116C")
|
||||||
|
this.device.shell("input tap " + 530 + " " + 1742)
|
||||||
|
else
|
||||||
this.device.shell("input tap " + 488 + " " + 1848)
|
this.device.shell("input tap " + 488 + " " + 1848)
|
||||||
await delay(2000);
|
await delay(2000);
|
||||||
break;
|
break;
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user