Merge branch 'feature/multi-devices' of bitbucket.org:panleicim/puppeteerjs into feature/multi-devices
This commit is contained in:
@@ -12,6 +12,7 @@ const {
|
|||||||
const GeoCaptchaSolver = require("./GeoCaptchaSolver");
|
const GeoCaptchaSolver = require("./GeoCaptchaSolver");
|
||||||
const SlidingCaptchaSolver = require("./SlidingCaptchaSolver");
|
const SlidingCaptchaSolver = require("./SlidingCaptchaSolver");
|
||||||
const OCRChecker = require("./OCRChecker");
|
const OCRChecker = require("./OCRChecker");
|
||||||
|
const crypto = require("crypto");
|
||||||
// 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";
|
||||||
const BLANK_URL = "about:blank"
|
const BLANK_URL = "about:blank"
|
||||||
@@ -560,6 +561,9 @@ class CommandorPage {
|
|||||||
async push_message_to_db(publishType, url) {
|
async push_message_to_db(publishType, url) {
|
||||||
let splitedUrl = url.split("/");
|
let splitedUrl = url.split("/");
|
||||||
let id = splitedUrl[splitedUrl.length - 1];
|
let id = splitedUrl[splitedUrl.length - 1];
|
||||||
|
if (id === "register") {
|
||||||
|
id = crypto.randomUUID()
|
||||||
|
}
|
||||||
if (url === "https://rendezvousparis.hermes.com/client/welcome") {
|
if (url === "https://rendezvousparis.hermes.com/client/welcome") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user