From 8641fec280cd62fa430ab6334912578750c11f5f Mon Sep 17 00:00:00 2001 From: liudongqi Date: Fri, 6 Sep 2024 17:19:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/service/Rs6Service.js | 3 +-- utils/UUIDUtil.js | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/routes/service/Rs6Service.js b/routes/service/Rs6Service.js index 926cfb6..57f62b4 100644 --- a/routes/service/Rs6Service.js +++ b/routes/service/Rs6Service.js @@ -6,7 +6,6 @@ let TimeUtil = require("../../utils/TimeUtil"); class Rs6Service { store = new Store(); - // service handle async handle(url, uuid, areaName, htmlStr, cookie, userAgent) { // 获取 origin @@ -18,7 +17,7 @@ class Rs6Service { // 加载dom let dom = await jsDom(htmlStr); console.log(`${uuid};html 加载长度--->`, dom.serialize().length) - window = dom.window + const window = dom.window // ------------------------------------------------ param ---------------------------------------------------------- // 标志判断cookie是否生成 window[uuid] = false diff --git a/utils/UUIDUtil.js b/utils/UUIDUtil.js index 797e6db..d4a6a99 100644 --- a/utils/UUIDUtil.js +++ b/utils/UUIDUtil.js @@ -4,7 +4,4 @@ class UUIDUtil { static uuid = crypto.randomUUID().replace(/-/g, ""); } - -console.log(UUIDUtil.uuid); - module.exports = UUIDUtil; \ No newline at end of file