From f6333009c2374ffb54dc5e328098b0815ac65ca2 Mon Sep 17 00:00:00 2001 From: blackmatrix7 <27717518+blackmatrix7@users.noreply.github.com> Date: Wed, 21 Sep 2022 10:25:25 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BB=80=E4=B9=88=E5=80=BC=E5=BE=97=E4=B9=B0]?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5?= =?UTF-8?q?=E4=B8=8B=E8=8E=B7=E5=8F=96=E4=B8=8D=E5=88=B0CookieId=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/smzdm/smzdm_daily.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/smzdm/smzdm_daily.js b/script/smzdm/smzdm_daily.js index 5ffa01023..7cbb2511a 100644 --- a/script/smzdm/smzdm_daily.js +++ b/script/smzdm/smzdm_daily.js @@ -34,8 +34,7 @@ async function getWebCookie() { currentCookie = $.request.headers.cookie || $.request.headers.Cookie; if (currentCookie.length >= 200) { $.logger.info(`当前页面获取的Cookie: ${currentCookie}`); - const matchStr = currentCookie.match(/__ckguid=[^\s]*;/); - const cookieId = matchStr !== null ? matchStr[0] : null; + const cookieId = currentCookie.match(/__ckguid=([^;]*)/ig); $.logger.info(`当前页面获取的CookieId\n${cookieId}`); // 获取新的session_id if (cookieId) {