From 0257ea893e5f576de28b72cdd5cdcdb44065ec54 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Tue, 10 May 2022 00:23:05 +0800 Subject: [PATCH] =?UTF-8?q?5-10=09=E5=AE=8C=E6=88=90=20=E8=8D=A3=E8=AA=89?= =?UTF-8?q?=E5=80=BC=E4=BB=BB=E5=8A=A1(=E6=B5=8B=E8=AF=95=E4=B8=AD)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tlm/tlm.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/tlm/tlm.js b/tlm/tlm.js index 2c1e362..ff8af93 100644 --- a/tlm/tlm.js +++ b/tlm/tlm.js @@ -27,7 +27,7 @@ let ck = ""; let token = ""; /////////////////////////////////////////////////////////////////// -let Version = '\n yml 2022/5/9-2 完成 看文章领金币 任务 (每次执行 20 次,尽量模拟人工操作了)\n' +let Version = '\n yml 2022/5/10 完成 看文章领金币 任务 (每次执行 20 次,尽量模拟人工操作了)\n' let thank = `\n 感谢 xx 的投稿\n` let test = `\n 脚本测试中,有bug及时反馈! 脚本测试中,有bug及时反馈!\n` /////////////////////////////////////////////////////////////////// @@ -89,13 +89,10 @@ async function start() { await $.wait(5 * 1000); } - let a1 = local_hours() % 2; - if (a1 = 1) { - console.log(`开始 荣誉广告`); - await honor_ad(); - await $.wait(5 * 1000); + console.log(`开始 荣誉广告`); + await honor_ad(); + await $.wait(5 * 1000); - } } @@ -228,7 +225,7 @@ async function start_reading() { form: { "article_id": article_id }, }; let result = await httpPost(url, `开始阅读`); - + console.log(result); if (result.code == 1) { console.log(`\n 开始阅读: 成功 ,阅读预计获得金币:${result.data.drawNum} \n`); @@ -293,7 +290,7 @@ async function honor_ad() { form: { "article_id": article_id }, }; let result = await httpPost(url, `荣誉广告`); - console.log(result); + if (result.code == 0) { console.log(`\n 荣誉广告: 成功 ,开始阅读广告: ${result.data.title} \n`);