From e3764934d241c31e0b23c1c15aefa3c73efbe47d Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Mon, 25 Mar 2024 09:26:28 +0800 Subject: [PATCH] Update wx_xlxyh.js --- wx_xlxyh.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/wx_xlxyh.js b/wx_xlxyh.js index 828a631..823fc97 100644 --- a/wx_xlxyh.js +++ b/wx_xlxyh.js @@ -30,17 +30,20 @@ class Task { async main() { await this.UserInfoApi(); - await this.SignInApi() - await this.LuckDrawApi() - await this.ArticleListApi() - if (this.articleId !== "") { - await this.ReadStartApi(this.articleId) - await this.LikeApi(this.articleId) - await this.ShareApi(this.articleId) - $.log(`模拟阅读55s`) - await $.wait(55000) - await this.ReadEndApi(this.articleId) + if (this.ckStatus) { + await this.SignInApi() + await this.LuckDrawApi() + await this.ArticleListApi() + if (this.articleId !== "") { + await this.ReadStartApi(this.articleId) + await this.LikeApi(this.articleId) + await this.ShareApi(this.articleId) + $.log(`模拟阅读55s`) + await $.wait(55000) + await this.ReadEndApi(this.articleId) + } } + } async taskRequest(method, url, body = "") { //