From 51ebb291b551f3c7395ee3033b32fb9c67151028 Mon Sep 17 00:00:00 2001 From: YY Date: Wed, 5 Jun 2024 17:05:16 +0800 Subject: [PATCH] Update jhsh_checkIn.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 node 环境下异常报错 --- scripts/jhsh_checkIn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/jhsh_checkIn.js b/scripts/jhsh_checkIn.js index 384c5f8..602d782 100644 --- a/scripts/jhsh_checkIn.js +++ b/scripts/jhsh_checkIn.js @@ -81,8 +81,8 @@ let skipDay = getEnv('JHSH_SKIPDAY') || ''; // 下个断签日 (适用于借记 let bodyArr = bodyStr ? bodyStr.split("|") : []; let bodyArr2 = autoLoginInfo ? autoLoginInfo.split("|") : []; $.is_debug = getEnv('is_debug') || 'false'; - -if (isGetCookie = typeof $request !== `undefined`) { +const isGetCookie = typeof $request !== `undefined`; +if (isGetCookie) { GetCookie(); $.done(); } else {