更新 'SrcJyPublic.js'

master
src48597962 7 months ago
parent 6bc033ea1f
commit 3490e9cbfa
  1. 14
      SrcJyPublic.js

@ -3,7 +3,7 @@ let rulepath = "hiker://files/rules/Src/Juying2/"; //规则文件路径
let cachepath = "hiker://files/_cache/Juying2/"; //缓存文件路径 let cachepath = "hiker://files/_cache/Juying2/"; //缓存文件路径
let jkfile = rulepath + "jiekou.json"; let jkfile = rulepath + "jiekou.json";
let jxfile = rulepath + "jiexi.json"; let jxfile = rulepath + "jiexi.json";
let ypfile = datapath + "yundisk.json"; let ypfile = rulepath + "yundisk.json";
let cfgfile = rulepath + "config.json"; let cfgfile = rulepath + "config.json";
let sortfile = rulepath + "jksort.json"; let sortfile = rulepath + "jksort.json";
let codepath = config.依赖?config.依赖.match(/http(s)?:\/\/.*\//)[0]:module.modulePath.slice(0, module.modulePath.lastIndexOf("/")+1); let codepath = config.依赖?config.依赖.match(/http(s)?:\/\/.*\//)[0]:module.modulePath.slice(0, module.modulePath.lastIndexOf("/")+1);
@ -19,6 +19,18 @@ if(fileExist(datapath + "jiekou.json")){
} }
deleteFile(datapath + "jiekou.json"); deleteFile(datapath + "jiekou.json");
} }
if(fileExist(datapath + "yundisk.json")){
if(!fileExist(jkfile)){
writeFile(jkfile, fetch(datapath + "yundisk.json"));
}
deleteFile(datapath + "yundisk.json");
}
if(fileExist(datapath + "live.txt")){
if(!fileExist(rulepath + "live.txt")){
writeFile(rulepath + "live.txt", fetch(datapath + "live.txt"));
}
deleteFile(datapath + "live.txt");
}
let Juconfig= {}; let Juconfig= {};
let Jucfg=fetch(cfgfile); let Jucfg=fetch(cfgfile);

Loading…
Cancel
Save