From 87a58774974f672bab6d0e2de87a30b2743356d8 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 9 May 2022 20:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF=20=20?= =?UTF-8?q?=E6=9C=89=E4=B8=AA=E9=93=BE=E6=8E=A5=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tlm/tlm.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tlm/tlm.js b/tlm/tlm.js index 4428cac..81dce27 100644 --- a/tlm/tlm.js +++ b/tlm/tlm.js @@ -83,7 +83,7 @@ async function start() { await user_info(); await $.wait(2 * 1000); - for (let index = 1; index < 21; index++) { + for (let index = 1; index < 2; index++) { console.log(`开始 第 ${index} 次 阅读文章--领金币`); await start_reading(); await $.wait(5 * 1000); @@ -243,12 +243,12 @@ async function start_reading() { /** * 阅读文章--领金币 httpPost - * http://tlm.zhixiang.run/api/coin/articleReadCountDown + * http://tlm.zhixiang.run/api/coin/articleReadEnd */ async function article_coin() { let url = { - url: `http://tlm.zhixiang.run/api/coin/articleReadCountDown`, + url: `http://tlm.zhixiang.run/api/coin/articleReadEnd`, headers: { "token": token, @@ -260,7 +260,7 @@ async function article_coin() { }; let result = await httpPost(url, `阅读文章--领金币`); - if (result.code !== null) { + if (result == null) { console.log(`\n 阅读文章--领金币: 成功 \n`); msg += `\n 阅读文章--领金币: 成功 \n`;