From a65d433e136a2d861588f7096553a5445f455729 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Mon, 20 Mar 2023 10:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BF=E6=B1=BD=E4=BC=A0=E7=A5=BA=EF=BC=9A?= =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gqcq.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gqcq.js b/gqcq.js index f4956d1..9108d00 100644 --- a/gqcq.js +++ b/gqcq.js @@ -1,7 +1,7 @@ /** * 广汽传祺 * cron 9 5 * * * gqcq.js - * + * 2023/03/20 随机延迟 * ========= 青龙--配置文件 =========== * # 项目名称 * export gqcq_data='token' @@ -218,8 +218,8 @@ class UserInfo { if (result.data[0].finishedNum == 0) { DoubleLog(`账号[${this.index}] 签到状态: 未签到,去执行签到 ,顺便抽个奖`); await this.task_signin(); - await $.wait(this.randomTime1) DoubleLog(`随机延迟${this.randomTime1}ms`) + await $.wait(this.randomTime1) await this.task_lottery(); } else if (result.data[0].finishedNum == 1) { DoubleLog(`账号[${this.index}] 签到状态:今天已经签到过了鸭,明天再来吧!`); @@ -230,8 +230,8 @@ class UserInfo { DoubleLog(`账号[${this.index}] 发帖:${result.data[1].finishedNum} / ${result.data[1].total}`); DoubleLog(`账号[${this.index}] 发帖:执行第一次发帖,评论,删除评论`); await this.post_topic(); - await $.wait(this.randomTime2) DoubleLog(`随机延迟${this.randomTime2}ms`) + await $.wait(this.randomTime2) DoubleLog(`账号[${this.index}] 发帖:执行第二次发帖,评论,删除评论`); await this.post_topic(); } else if (result.data[1].finishedNum == 2) { @@ -242,8 +242,8 @@ class UserInfo { if (result.data[3].finishedNum < 2) { DoubleLog(`账号[${this.index}] 分享状态:${result.data[3].finishedNum} / ${result.data[3].total}`); await this.task_share(); - await $.wait(this.randomTime2) DoubleLog(`随机延迟${this.randomTime2}ms`) + await $.wait(this.randomTime2) await this.task_share(); } else if (result.data[3].finishedNum == 2) { DoubleLog(`账号[${this.index}] 今天已经分享过了鸭,明天再来吧!`); @@ -313,8 +313,8 @@ class UserInfo { if (result.errorCode == 20000) { DoubleLog(`账号[${this.index}] 发布帖子:${result.errorMessage} ,帖子ID: ${result.data.postId}`); let topic_id = result.data.postId; - await $.wait(this.randomTime2) DoubleLog(`随机延迟${this.randomTime2}ms`) + await $.wait(this.randomTime2) await this.add_comment(topic_id); } else { @@ -337,8 +337,8 @@ class UserInfo { //console.log(result); if (result.errorCode == 20000) { DoubleLog(`账号[${this.index}] 评论帖子: 评论 ${topic_id} 帖子 ${result.errorMessage}`); - await $.wait(this.randomTime2) DoubleLog(`随机延迟${this.randomTime2}ms`) + await $.wait(this.randomTime2) await this.delete_topic(topic_id); } else { DoubleLog(`账号[${this.index}] 评论帖子失效,原因未知!`);