From 1527bc4d5b76989537be5b3ed3af3c3efd8a6f02 Mon Sep 17 00:00:00 2001 From: PAN Lei Date: Thu, 25 May 2023 14:58:08 +0200 Subject: [PATCH] use mail instead of uuid to save no id appointment --- src/workers/CommandorPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 970bd71..0e7220f 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -317,12 +317,12 @@ class CommandorPage { async inputPassportId(page) { try { if (this.browser.isConnected()) { - // if (!this.isPasspordInput) { + if (!this.isPasspordInput) { await page.focus(PASSPORT_ID); await delay(getRandomWaitTime()); await page.keyboard.type(this.contact.passportNumber.toString()) this.isPasspordInput = true; - // } + } } } catch (e) { log(e); @@ -562,7 +562,7 @@ class CommandorPage { let splitedUrl = url.split("/"); let id = splitedUrl[splitedUrl.length - 1]; if (id === "register") { - id = crypto.randomUUID() + id = this.contact.mail; } if (url === "https://rendezvousparis.hermes.com/client/welcome") { return