15 lines
983 B
JavaScript
15 lines
983 B
JavaScript
// 用户已确认本轮翻卡完成;原生余额61→1392,按今天已完成保存,再正常无参数启动验证切换。
|
||
var stopped=[];
|
||
engines.all().forEach(function(e){
|
||
if(e.id===engines.myEngine().id)return;
|
||
if(!/(?:kuaishou-daily\.auto\.js|ks-video-resume\.auto\.js)$/.test(String(e.getSource())))
|
||
throw new Error('其他脚本仍在运行,不能同时操作:'+e.getSource());
|
||
stopped.push(e.id);e.forceStop();
|
||
});
|
||
var deadline=Date.now()+5000;
|
||
while(engines.all().some(function(e){return stopped.indexOf(e.id)>=0;})&&Date.now()<deadline)sleep(100);
|
||
if(engines.all().some(function(e){return stopped.indexOf(e.id)>=0;}))throw new Error('旧快手引擎未退出');
|
||
eval(files.read('/sdcard/脚本/快手/kuaishou-daily.auto.js').split('// MAIN:')[0]);
|
||
saveFlipDone('用户确认翻卡已完成;本轮余额61→1392,增加1331金币');
|
||
engines.execScriptFile('/sdcard/脚本/快手/kuaishou-daily.auto.js',{path:'/sdcard/脚本/快手/'});
|