use uuid when id not found

This commit is contained in:
Lei PAN
2023-05-25 12:38:53 +02:00
parent 29b65401d4
commit b3f4c8a374
+4
View File
@@ -12,6 +12,7 @@ const {
const GeoCaptchaSolver = require("./GeoCaptchaSolver");
const SlidingCaptchaSolver = require("./SlidingCaptchaSolver");
const OCRChecker = require("./OCRChecker");
const crypto = require("crypto");
// const RDV_URL = "http://192.168.0.44:8000/test_appointment.html"
const RDV_URL = "https://rendezvousparis.hermes.com/client/register";
const BLANK_URL = "about:blank"
@@ -560,6 +561,9 @@ class CommandorPage {
async push_message_to_db(publishType, url) {
let splitedUrl = url.split("/");
let id = splitedUrl[splitedUrl.length - 1];
if (id === "register") {
id = crypto.randomUUID()
}
if (url === "https://rendezvousparis.hermes.com/client/welcome") {
return
}