remove beep

This commit is contained in:
2022-09-18 13:34:39 +02:00
parent bdb92a968f
commit 26167dee8b
2 changed files with 8 additions and 3 deletions
-1
View File
@@ -13,7 +13,6 @@
"@nodegui/nodegui": "^0.57.1", "@nodegui/nodegui": "^0.57.1",
"alert": "^5.1.1", "alert": "^5.1.1",
"axios": "^0.27.2", "axios": "^0.27.2",
"beepbeep": "^1.3.0",
"electron-squirrel-startup": "^1.0.0", "electron-squirrel-startup": "^1.0.0",
"mongodb": "^4.9.1", "mongodb": "^4.9.1",
"mongoose": "^6.5.4", "mongoose": "^6.5.4",
+8 -2
View File
@@ -2,7 +2,9 @@ const {SolveCaptcha, TWO_CAPTCHA_CONNECTION_FAILED} = require("./SolveCaptcha");
const ReserveResultPojo = require("../models/ReserveResultPojo"); const ReserveResultPojo = require("../models/ReserveResultPojo");
const appointmentLogger = require("../utiles/LoggerUtils") const appointmentLogger = require("../utiles/LoggerUtils")
const PublishType = require("../models/PublishType"); const PublishType = require("../models/PublishType");
const beep = require('beepbeep') const {
shell
} = require('electron')
// const RDV_URL = "http://192.168.0.44:8000/test_appointment.html" // const RDV_URL = "http://192.168.0.44:8000/test_appointment.html"
const RDV_URL = "https://rendezvousparis.hermes.com/client/register"; const RDV_URL = "https://rendezvousparis.hermes.com/client/register";
BLANK_URL = "about:blank" BLANK_URL = "about:blank"
@@ -293,7 +295,11 @@ class CommandorPage {
if (content.toString().includes(captcha_url)) { if (content.toString().includes(captcha_url)) {
await this.checkAudioBtn(); await this.checkAudioBtn();
beep(20) for (let i = 0; i < 15; i++) {
await delay(1000)
console.log("will call beep")
shell.beep()
}
console.log("发现datadome"); console.log("发现datadome");
} else { } else {
if (currentPage.url() === RDV_URL) { if (currentPage.url() === RDV_URL) {