From 2ad83be04d5c1f9efc7189bc6fbfcfe849dd62b5 Mon Sep 17 00:00:00 2001 From: liudongqi Date: Thu, 5 Sep 2024 17:32:57 +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/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/index.js b/routes/index.js index 0e32afa..c031d11 100644 --- a/routes/index.js +++ b/routes/index.js @@ -89,7 +89,7 @@ async function handle(url, uuid, areaName, htmlStr, cookie, userAgent) { console.debug(`${uuid};正在设置 Cookie:`, cookie, currentUrl); let call = superSetCookie.call(this, cookie, currentUrl, options, callback); // 设置标志可取标志 - if (cookie.includes('YqQ7a3SgknV8P')) { + if (cookie.includes('P=')) { window[uuid] = true } return call; @@ -107,7 +107,7 @@ async function handle(url, uuid, areaName, htmlStr, cookie, userAgent) { let internalVMContext = dom.getInternalVMContext(); script.runInContext(internalVMContext, {timeout: 1000}); - // 等待cookie 被设置 + // 等待 cookie 被设置 for (let i = 0; i < 10; i++) { if (window[uuid]) { break;