support more texts
This commit is contained in:
+5
-4
@@ -4,11 +4,12 @@ const QUEUE_HOST = "amqp://appointment:ZyuhJZ2xEYWhElhpJjy7YEpZGZwNYJz2fHIu@appo
|
||||
const REQUEST_DATA_QUEUE_FR = 'REQUEST_DATA';
|
||||
const REQUEST_DATA_QUEUE_DE = 'REQUEST_DATA_DE';
|
||||
const REQUEST_DATA_OBJECT = "REQUEST_DATA_OBJECT"
|
||||
const TEST_QUEUE = "TEST_QUEUE"
|
||||
// const TEST_QUEUE = "SHARED_OBJECT"
|
||||
// const TEST_QUEUE = "TEST_QUEUE"
|
||||
// const TEST_QUEUE = "MORNING_DATA_CACHE"
|
||||
const TEST_QUEUE = "SHARED_OBJECT"
|
||||
|
||||
class Sender {
|
||||
channel;
|
||||
channel;p
|
||||
connection;
|
||||
|
||||
async initConnection() {
|
||||
@@ -19,7 +20,7 @@ class Sender {
|
||||
await this.channel.assertQueue(REQUEST_DATA_QUEUE_FR, {persistent: true});
|
||||
}
|
||||
|
||||
sendMessage(msg, queue_name = REQUEST_DATA_QUEUE_FR) {
|
||||
sendMessage(msg, queue_name = REQUEST_DATA_QUEUE_DE) {
|
||||
this.channel.sendToQueue(queue_name, Buffer.from(msg),{
|
||||
persistent:true
|
||||
})
|
||||
|
||||
@@ -1293,7 +1293,7 @@ class CommandorPage {
|
||||
async handleBraveSkipBtn() {
|
||||
let model = this.device.model()
|
||||
if (model === "CPH2219") {
|
||||
await this.device.shell("input tap " + 558 + " " + 1160)
|
||||
await this.tapForDevice(this.device, 558, 1160)
|
||||
} else if (model === "MI 5s" || model === "ASUS_Z012D") {
|
||||
await this.tapForDevice(this.device, 530, 1000)
|
||||
} else if (model === "SM-G965U1") {
|
||||
|
||||
@@ -135,9 +135,10 @@ class OCRChecker {
|
||||
await this.deleteFile(fileName)
|
||||
return OCRResult.BRAVE_NOTIFICATION
|
||||
} else if (result.includes(SLIDING_CAPTCHA_FR) || result.includes(SLIDING_CAPTCHA_FR_2) || result.includes(SLIDING_CAPTCHA_FR_3) || result.includes(SLIDING_CAPTCHA_FR_4) || result.includes(SLIDING_CAPTCHA_FR_5) || result.includes(SLIDING_CAPTCHA_FR_6)) {
|
||||
await this.deleteFile(fileName)
|
||||
if (result.includes(SLIDING_CAPTCHA_LOADING_FR)) {
|
||||
return OCRResult.SLIDING_CAPTCHA_LOADING
|
||||
} else {
|
||||
await this.deleteFile(fileName)
|
||||
}
|
||||
// await this.deleteFile(screenShot)
|
||||
// if (result.includes("rac"))
|
||||
|
||||
Reference in New Issue
Block a user