3 Star 0 Fork 0

asst_tech/gdt_hb

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
apprun.js 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
zhimin.guo 提交于 2020-09-14 11:04 . first commit
run();
/**
* 显示主界面
*/
function run() {
var storage = storages.create("init");
var apps= storage.get("applist");
sleep(10000);
if(storage.contains("applist")){
var apps= storage.get("applist");
log(apps);
var qstime = storage.get("起始时间");
var jstime = storage.get("结束时间");
var nowtime = new Date().getHours();
var bls = boools(qstime,jstime,nowtime);
while(bls){
nowtime = new Date().getHours();
bls = boools(qstime,jstime,nowtime);
for(i=0;i<apps.length;i++){
log(""+engines.all().length);
while(engines.all().length >2){
sleep(5000);
}
nowtime = new Date().getHours();
bls = boools(qstime,jstime,nowtime);
if(!bls){
break;
}
var exectuion = engines.execScriptFile("./"+apps[i]+".js");
log(engines.all().length);
sleep(5000);
}
}
}else{
log("meiyou");
}
}
function boools(x,y,z){
if(x>y){
if(z<y || z>x){
return false;
}else{
return true;
}
}else{
if(z>x && z<y){
return false;
}else{
return true;
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/asst_tech/gdt_hb.git
git@gitee.com:asst_tech/gdt_hb.git
asst_tech
gdt_hb
gdt_hb
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385