@@ -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() {
230247async 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 ) {
0 commit comments