From 5f569051979fb2a4de3161eaabed37cef73595f1 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Wed, 22 Nov 2023 17:50:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E6=B1=BD=E4=BC=A0=E7=A5=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复小BUG --- gacmotor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gacmotor.js b/gacmotor.js index 254b465..4df4574 100644 --- a/gacmotor.js +++ b/gacmotor.js @@ -127,7 +127,7 @@ class UserInfo { await this._signIn() } await this._taskList() - if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum > 1 || this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum > 1) { + if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum >= 1 || this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum >= 1) { if (process.env["gacmotorPost"] == "true" || process.env["gacmotorComment"] == "true") { console.log(`正在远程获取15条随机评论~请等待15-20秒`) await this._getText() @@ -136,7 +136,7 @@ class UserInfo { if (process.env["gacmotorPost"] == "true") { console.log(`已设置发帖功能`); - if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum > 1) { + if (this.postNotFinishedNum !== 0 && this.postNotFinishedNum >= 1) { await this._post(this.titleList[0], this.contentList[0])//可能需要图片 console.log(`等待30s`) await $.wait(30000) @@ -148,7 +148,7 @@ class UserInfo { } await this._applatestlist() - if (this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum > 1) { + if (this.sharenNotFinishedNum !== 0 && this.sharenNotFinishedNum >= 1) { for (let postId of this.applatestlist) { await this._forward(postId) } @@ -156,7 +156,7 @@ class UserInfo { if (process.env["gacmotorComment"] == "true") { console.log(`已设置评论功能`); - if (this.commentNotFinishedNum !== 0 && this.commentNotFinished > 1) { + if (this.commentNotFinishedNum !== 0 && this.commentNotFinished >= 1) { for (let postId of this.applatestlist) { await this._add(postId, this.titleList[0]) } @@ -165,7 +165,7 @@ class UserInfo { } if (process.env["gacmotorComment"] == "true") { - if (this.commentNotFinishedNum !== 0 && this.commentNotFinished > 1) { + if (this.commentNotFinishedNum !== 0 && this.commentNotFinished >= 1) { console.log(`等待15s`) await $.wait(15000) console.log(`检测评论列表`);