Skip to content

Commit bc9e188

Browse files
committed
sync
1 parent 905241f commit bc9e188

2 files changed

Lines changed: 29 additions & 13 deletions

File tree

RUNSTEP/cash.js

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ if ($.isNode()) {
7474
runstepkeyArr.push($.getdata('runstepkey'));
7575
txtokenArr.push($.getdata('txtoken'));
7676
txkeyArr.push($.getdata('txkey'));
77+
// 根据boxjs中设置的额外账号数,添加存在的账号数据进行任务处理
78+
let Count = ($.getval('Count') || '1') - 0;
79+
for (let i = 2; i <= Count; i++) {
80+
if ($.getdata(`runsteptoken${i}`)) {
81+
runsteptokenArr.push($.getdata(`runsteptoken${i}`));
82+
runstepkeyArr.push($.getdata(`runstepkey${i}`));
83+
txtokenArr.push($.getdata(`txtoken${i}`));
84+
txkeyArr.push($.getdata(`txkey${i}`));
85+
}
86+
}
7787
}
7888

7989
//////////////////////////////////////////////////////////////////
@@ -84,14 +94,21 @@ if ($.isNode()) {
8494
console.log($.name, '【提示】请先前往获取cookie📲')
8595
return;
8696
}
87-
runsteptokenVal = runsteptokenArr[0];
88-
runstepkeyVal = runstepkeyArr[0];
89-
txtokenVal = txtokenArr[0];
90-
txkeyVal = txkeyArr[0];
97+
console.log(`\n✅ 检查共有多少个账号。。。`)
98+
await $.wait(4000)
99+
console.log(`👥 本次执行共${txtokenArr.length}个账号`)
100+
for(let i = 0; i < txtokenArr.length; i++){
101+
runsteptokenVal = runsteptokenArr[i];
102+
runstepkeyVal = runstepkeyArr[i];
103+
txtokenVal = txtokenArr[i];
104+
txkeyVal = txkeyArr[i];
105+
106+
console.log(`\n💗💕 开始${$.name}账号【${(i+1)}】 💕💗\n`)
107+
await $.wait(3000)
108+
await runstepcash();
109+
await showmsg2();
110+
}
91111

92-
console.log(`\n💗💕 开始执行脚本任务 💕💗\n`)
93-
await runstepcash();
94-
await showmsg2();
95112

96113
})()
97114
.catch((e) => $.logErr(e))
@@ -128,7 +145,7 @@ async function runstepcash() {
128145
await myself()
129146
await txlog()
130147
console.log(`\n🇨🇳【开始提现任务】`)
131-
$.log('👩‍⚕️提现策略:\n账户金额大于50元,优先提现50元,否则提现0.3元。\n')
148+
$.log('👩‍⚕️提现策略:\n账户金额大于50元,优先提现50元,否则提现1元。\n')
132149
if (hour == 0) {
133150
await cash()
134151
} else {
@@ -230,7 +247,7 @@ async function cash() {
230247
async function cash1() {
231248
return new Promise((resolve) => {
232249
let url = {
233-
url: `https://runstep.kujievip.com/runstep/applytx?account=0.3&type=2&appid=${txtokenVal}=${version}&${runsteptokenVal}&path=p%2Faccount%2Ftake%2Ftake&platform=miniProgram&env=production`,
250+
url: `https://runstep.kujievip.com/runstep/applytx?account=1&type=2&appid=${txtokenVal}=${version}&${runsteptokenVal}&path=p%2Faccount%2Ftake%2Ftake&platform=miniProgram&env=production`,
234251
body: ``,
235252
headers: JSON.parse(txkeyVal),
236253
};
@@ -244,8 +261,8 @@ async function cash1() {
244261
if (safeGet(data)) {
245262
if (logs == 1) $.log(data)
246263
data = JSON.parse(data);
247-
$.log(`【自动提现0.3元】:成功🎉\n`);
248-
tz += `【自动提现0.3元】:成功🎉\n`
264+
$.log(`【自动提现1元】:成功🎉\n`);
265+
tz += `【自动提现1元】:成功🎉\n`
249266
}
250267
}
251268
} catch (e) {

RUNSTEP/runstep.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const logs = 0;
1010
const notifyInterval = 1;
1111
//通知风格
1212
let tz = '';
13-
let tz2 = '';
1413
let version = $.getval('version') || "1.5.1"; //APP版本号,更新请到APP更改
1514

1615
//////////////////////////////////////////////////////////////////
@@ -81,7 +80,7 @@ if ($.isNode()) {
8180
for(let i = 0; i < runsteptokenArr.length; i++){
8281
runsteptokenVal = runsteptokenArr[i];
8382
runstepkeyVal = runstepkeyArr[i];
84-
console.log(`\n💗💕 开始执行【${$.name+(i+1)}脚本任务 💕💗\n`)
83+
console.log(`\n💗💕 开始${$.name}账号【${(i+1)}】 💕💗\n`)
8584
await $.wait(3000)
8685
await runstepapp();
8786
}

0 commit comments

Comments
 (0)