You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
782 B
36 lines
782 B
let cfgfile = "hiker://files/rules/Src/Juying2/config.json";
|
|
let Juconfig= {};
|
|
let Jucfg=fetch(cfgfile);
|
|
if(Jucfg != ""){
|
|
eval("Juconfig=" + Jucfg+ ";");
|
|
}else{
|
|
Juconfig["依赖"] = config.依赖;
|
|
writeFile(cfgfile, JSON.stringify(Juconfig));
|
|
}
|
|
|
|
let jkfile = "hiker://files/rules/Src/Juying2/jiekou.json";
|
|
let jxfile = "hiker://files/rules/Src/Juying2/jiexi.json";
|
|
|
|
function getFile(lx) {
|
|
let file = lx=='jk'?jkfile:jxfile;
|
|
return file;
|
|
}
|
|
function getDatas(lx) {
|
|
let datalist = [];
|
|
let sourcefile = getFile(lx);
|
|
let sourcedata = fetch(sourcefile);
|
|
if(sourcedata != ""){
|
|
try{
|
|
eval("datalist=" + sourcedata+ ";");
|
|
}catch(e){
|
|
datalist = [];
|
|
}
|
|
}
|
|
|
|
datalist.reverse();
|
|
|
|
return datalist;
|
|
}
|
|
|
|
|
|
|
|
|