From 2bc9728ffd450553a7229ba6e93617db0ef1ebee Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 17 Mar 2022 22:28:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=9F=A5=E8=AF=A2=E6=94=B6?= =?UTF-8?q?=E7=9B=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sytt/sytt.js | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/sytt/sytt.js b/sytt/sytt.js index 867273d..56cbbaa 100644 --- a/sytt/sytt.js +++ b/sytt/sytt.js @@ -74,6 +74,8 @@ let uid; //执行任务 await syttdl(); await $.wait(2 * 1000); + await cxsy(); + await $.wait(2 * 1000); await syttqd(); await $.wait(2 * 1000); await plid(); @@ -146,6 +148,39 @@ function syttdl(timeout = 0) { }) } + +// 查询收益 +function cxsy(timeout = 0) { + return new Promise((resolve) => { + let url = { + url: `https://app.site.10yan.com.cn/index.php?s=/Api/Activityv1/minemonetotal&id=5&uid=${uid}&source=android&ver=6.2.3&build=145`, + headers:'', + } + // console.log(url); + $.get(url, async (err, resp, data) => { + try { + // console.log(`========输出签到 data开始===========`); + // console.log(data); + // console.log(`========输出签到 data结束=========`); + result = JSON.parse(data); + if (result.code == 200) { + $.log(`\n【🎉🎉🎉 查询收益 🎉🎉🎉】\n 今日收益${result.data.todaymoney} \n 累计收益${result.data.totalmoney} \n 待提现 ${result.data.cashmoney} 💪🏻 `) + // await $.wait(3 * 1000) + }else { + $.log(`\n【🎉🎉🎉 查询收益 🎉🎉🎉】:失败 ❌ 了呢,原因未知! `) + } + } catch (e) { + $.logErr(e, resp); + } finally { + resolve() + } + }, timeout) + + }) +} + + + // 签到 function syttqd(timeout = 0) { return new Promise((resolve) => {