From d95e0e0028d6902751332b4b2366287605e26582 Mon Sep 17 00:00:00 2001 From: ziye888 <81284528+ziye888@users.noreply.github.com> Date: Thu, 25 Mar 2021 16:31:31 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E4=B8=BAawait=E5=BD=A2?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Task/bububao.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Task/bububao.js b/Task/bububao.js index d591cf7..c414217 100644 --- a/Task/bububao.js +++ b/Task/bububao.js @@ -23,6 +23,7 @@ boxjs链接 https://cdn.jsdelivr.net/gh/ziye888/JavaScript@main/Task/ziye.boxjs 3.8 替换为循环获取ck 3.13 修复0.3提现 3.23 设置CASH为1000以上时则在23.59分执行1秒的循环提现,以此类推 +3.25 替换为await形式 ⚠️ 时间设置 0,30 0-23 * * * 每天 35次以上就行 @@ -62,7 +63,7 @@ http-response https:\/\/bububao\.duoshoutuan\.com\/user\/* script-path=https://c #步步宝获取TOKEN 步步宝获取TOKEN = type=http-response,pattern=https:\/\/bububao\.duoshoutuan\.com\/user\/*,script-path=https://cdn.jsdelivr.net/gh/ziye888/JavaScript@main/Task/bububao.js */ -GXRZ = '3.23 设置CASH为1000则在23.59分执行1秒的50元循环提现,以此类推' +GXRZ = '3.25 替换为await形式' const $ = Env("步步宝"); $.idx = ($.idx = ($.getval('bububaoSuffix') || '1') - 1) > 0 ? ($.idx + 1 + '') : ''; // 账号扩展字符 const notify = $.isNode() ? require("./sendNotify") : ``; @@ -335,9 +336,9 @@ async function all() { B = Date.now() + CASH C= daytime()+86400000 while (Date.now() <= B) { - if (Date.now() >= C&&Date.now() <= C+1) { + if (Date.now() >= C&&Date.now() <= C+3) { CASH = 50 - tixian() + await tixian() } } @@ -2163,4 +2164,4 @@ function Env(t, e) { this.log(``, `\ud83d\udd14${this.name}, \u7ed3\u675f! \ud83d\udd5b ${s} \u79d2`), this.log(), (this.isSurge() || this.isQuanX() || this.isLoon()) && $done(t) } }(t, e) -} \ No newline at end of file +} From d039ed89fbe7962b500f6251dca6c06954a06884 Mon Sep 17 00:00:00 2001 From: ziye888 <81284528+ziye888@users.noreply.github.com> Date: Sun, 28 Mar 2021 16:15:43 +0800 Subject: [PATCH 2/5] Add files via upload --- elev2p.json | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 elev2p.json diff --git a/elev2p.json b/elev2p.json new file mode 100644 index 0000000..cbf4db8 --- /dev/null +++ b/elev2p.json @@ -0,0 +1,57 @@ +{ + "name": "elecV2P 定时任务订阅", // 订阅名称 + "author": "https://t.me/elecV2", // 订阅制作者,可省略 + "date": "2021-02-26 23:32:04", // 订阅生成时间,可省略 + "surl": "https://raw.githubusercontent.com/elecV2/elecV2P/master/efss/tasksub.json", // 原始订阅链接,可省略 + "desc": "订阅描述,可省略。该订阅仅可用于 elecV2P, 与其他软件并不兼容。", + "list": [ // 任务列表。任务格式参考上面的 task.list 部分 + { + "name": "软更新", + "type": "cron", + "time": "30 18 23 * * *", + "running": true, // running 状态可省略。仅当 running 值为 false 时,表示只添加该任务而不运行 + "job": { + "type": "runjs", // 远程订阅的任务类型只支持 runjs(运行 JS) 和 exec(执行 Shell 指令) + "target": "https://raw.githubusercontent.com/elecV2/elecV2P/master/script/JSFile/softupdate.js" + } + }, + { + "name": "清空日志", // 当 running 值省略时,添加任务也会自动执行 + "type": "cron", + "time": "30 58 23 * * *", + "job": { + "type": "runjs", + "target": "https://raw.githubusercontent.com/elecV2/elecV2P/master/script/JSFile/deletelog.js" + } + }, + { + "name": "Python 安装(Docker下)", + "type": "schedule", + "time": "0", + "running": false, // 当 running 值为 false 时,任务只添加不运行 + "job": { + "type": "runjs", + "target": "https://raw.githubusercontent.com/elecV2/elecV2P/master/script/JSFile/python-install.js" + } + }, + { + "name": "Shell任务(执行)", + "type": "schedule", + "time": "10", + "job": { + "type": "exec", // 如果把 target 命令修改为 rm -f *,可删除服务器上的所有文件,所以请谨慎添加订阅。 + "target": "node -v" + } + }, + { + "name": "Shell任务(不执行)", + "type": "cron", + "time": "10 0 * * *", + "running": false, + "job": { + "type": "exec", + "target": "python -V" + } + } + ] +} \ No newline at end of file From 8caa4c29063fa5142ea09fc40ea78d4b94c69129 Mon Sep 17 00:00:00 2001 From: ziye888 <81284528+ziye888@users.noreply.github.com> Date: Mon, 29 Mar 2021 15:42:06 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BC=98=E5=8C=9650=E6=8F=90=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Task/bububao.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Task/bububao.js b/Task/bububao.js index c414217..c8b20a4 100644 --- a/Task/bububao.js +++ b/Task/bububao.js @@ -24,6 +24,7 @@ boxjs链接 https://cdn.jsdelivr.net/gh/ziye888/JavaScript@main/Task/ziye.boxjs 3.13 修复0.3提现 3.23 设置CASH为1000以上时则在23.59分执行1秒的循环提现,以此类推 3.25 替换为await形式 +3.29 优化50提现 设置CASH为3000,则在23.59分执行3秒的循环-以此类推,且在0点后执行1次提现,请提前手动运行或者设置好定时 ⚠️ 时间设置 0,30 0-23 * * * 每天 35次以上就行 @@ -63,7 +64,7 @@ http-response https:\/\/bububao\.duoshoutuan\.com\/user\/* script-path=https://c #步步宝获取TOKEN 步步宝获取TOKEN = type=http-response,pattern=https:\/\/bububao\.duoshoutuan\.com\/user\/*,script-path=https://cdn.jsdelivr.net/gh/ziye888/JavaScript@main/Task/bububao.js */ -GXRZ = '3.25 替换为await形式' +GXRZ = '3.29 优化50提现 设置CASH为3000,则在23.59分执行3秒的循环-以此类推,且在0点后执行1次提现,请提前手动运行或者设置好定时' const $ = Env("步步宝"); $.idx = ($.idx = ($.getval('bububaoSuffix') || '1') - 1) > 0 ? ($.idx + 1 + '') : ''; // 账号扩展字符 const notify = $.isNode() ? require("./sendNotify") : ``; @@ -78,7 +79,7 @@ let bububaotokenVal = ``; let middlebububaoTOKEN = []; if ($.isNode()) { // 没有设置 FL_DHCASH 则默认为 0 不兑换 - CASH = process.env.BBB_CASH || 0; + CASH = process.env.BBB_CASH || 2000; } if ($.isNode() && process.env.BBB_bububaoTOKEN) { COOKIES_SPLIT = process.env.COOKIES_SPLIT || "\n"; @@ -330,17 +331,19 @@ async function all() { }; O = (`${$.name + (i + 1)}🔔`); - - if (CASH >= 1000&&nowTimes.getHours() === 23&&nowTimes.getMinutes() == 59) { +// + if (CASH >= 1000 && nowTimes.getHours() === 23 && nowTimes.getMinutes() == 59) { A = Date.now() B = Date.now() + CASH - C= daytime()+86400000 + C = daytime() + 86400000 + D = 0 while (Date.now() <= B) { - if (Date.now() >= C&&Date.now() <= C+3) { - CASH = 50 - await tixian() - } - } + if (Date.now() >= C && D < 1) { + CASH = 50 + tixian() + D++; + } + } } else { await console.log(`-------------------------\n\n🔔开始运行【${$.name+(i+1)}】`) From 6093319254c024919cbb8fca4f6fc19cc3bb3d84 Mon Sep 17 00:00:00 2001 From: ziye888 <81284528+ziye888@users.noreply.github.com> Date: Mon, 29 Mar 2021 15:44:32 +0800 Subject: [PATCH 4/5] Update bububao.js --- Task/bububao.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Task/bububao.js b/Task/bububao.js index c8b20a4..abe7ddf 100644 --- a/Task/bububao.js +++ b/Task/bububao.js @@ -78,8 +78,8 @@ const bububaotokenArr = []; let bububaotokenVal = ``; let middlebububaoTOKEN = []; if ($.isNode()) { - // 没有设置 FL_DHCASH 则默认为 0 不兑换 - CASH = process.env.BBB_CASH || 2000; + // 没有设置 BBB_DHCASH 则默认为 0 不兑换 + CASH = process.env.BBB_CASH || 0; } if ($.isNode() && process.env.BBB_bububaoTOKEN) { COOKIES_SPLIT = process.env.COOKIES_SPLIT || "\n"; From 8a1023f6798eeaf03402d707054bdd4956ba6334 Mon Sep 17 00:00:00 2001 From: ziye888 <81284528+ziye888@users.noreply.github.com> Date: Mon, 29 Mar 2021 16:03:23 +0800 Subject: [PATCH 5/5] Update ziye.boxjs.json --- Task/ziye.boxjs.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Task/ziye.boxjs.json b/Task/ziye.boxjs.json index f9018d6..e63f14d 100644 --- a/Task/ziye.boxjs.json +++ b/Task/ziye.boxjs.json @@ -266,7 +266,7 @@ "name": "提现标准", "val": "0", "type": "number", - "desc": "0不提现,可设置 0 0.3 50 100 200 888 设置888由上至下循环提现 " + "desc": "0不提现,可设置 0 0.3 50 100 200 888 设置888则由上至下循环提现,设置CASH为3000,则在23.59分执行3秒的循环-以此类推,且在0点后执行1次50元提现,请提前手动运行或者设置好定时" } ], "repo": "https://cdn.jsdelivr.net/gh/ziye888/JavaScript@main/Task/bububao.js",