From 5f690f1b8379317e68618120e7441a9b50bcfd8f Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Wed, 22 Nov 2023 12:25:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E6=B1=BD=E4=BC=A0=E7=A5=BA=EF=BC=9A?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gacmotor.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gacmotor.js b/gacmotor.js index 68ca804..ffdc199 100644 --- a/gacmotor.js +++ b/gacmotor.js @@ -197,8 +197,10 @@ class UserInfo { if (this.signInStatus == false) { await this._signIn() } - console.log(`正在远程获取15条随机评论~请等待15-20秒`) - await this._getText() + if (process.env["gacmotorPost"] == "true" || process.env["gacmotorComment"] == "true") { + console.log(`正在远程获取15条随机评论~请等待15-20秒`) + await this._getText() + } if (process.env["gacmotorPost"] == "true") { console.log(`已设置发帖功能`); await this._post(this.titleList[0], this.contentList[0])//可能需要图片 @@ -232,6 +234,7 @@ class UserInfo { } } await this._getChinaTime() + console.log(`11/26截止 做广州车站活动 `); if (this.BeiJingTime < 1701014400000) { //11/26截至 //做广州车站活动 @@ -345,7 +348,7 @@ class UserInfo { body: `taskId=${taskId}&companyCode=CHUANQI&phone=${this.mobile}` } let { body: result } = await httpRequest(options); - console.log(options); + //console.log(options); result = JSON.parse(result); //console.log(result); if (result.errorCode == "0") {