From f47ad7c8a2c85a34d53a8c17e106dd8ce5295001 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Sat, 23 Mar 2024 22:44:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=B7=E5=8F=B6=E5=81=A5=E5=BA=B7=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyjk.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hyjk.js b/hyjk.js index bcb33c8..12bf534 100644 --- a/hyjk.js +++ b/hyjk.js @@ -33,8 +33,10 @@ class Task { for (let i of this.taskVenueIdList) { await this.taskList(i.venueId) } - $.log(`获取到任务列表`) - $.log(JSON.stringify(this.taskIdList)) + if (this.taskIdList.length > 0) { + $.log(` 获取到任务列表`) + $.log(JSON.stringify(" " + this.taskIdList)) + } for (let i of this.taskIdList) { await this.updateTaskInfo(i.taskId, 0) await $.wait(20000) @@ -253,6 +255,7 @@ class Task { "accept-encoding": "gzip, deflate, br", "accept-language": "zh-CN,zh;q=0.9" } + this.userId != '' ? Object.assign(headers, { "userid": this.userId }) : '' const reqeuestOptions = { url: url, method: method,