更新 'SrcJyPublic.js'

master
src48597962 7 months ago
parent 3490e9cbfa
commit 408f2191d8
  1. 9
      SrcJyPublic.js

@ -4,6 +4,7 @@ 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 = rulepath + "yundisk.json"; let ypfile = rulepath + "yundisk.json";
let tvfile = rulepath + "live.txt";
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);
@ -20,14 +21,14 @@ if(fileExist(datapath + "jiekou.json")){
deleteFile(datapath + "jiekou.json"); deleteFile(datapath + "jiekou.json");
} }
if(fileExist(datapath + "yundisk.json")){ if(fileExist(datapath + "yundisk.json")){
if(!fileExist(jkfile)){ if(!fileExist(ypfile)){
writeFile(jkfile, fetch(datapath + "yundisk.json")); writeFile(ypfile, fetch(datapath + "yundisk.json"));
} }
deleteFile(datapath + "yundisk.json"); deleteFile(datapath + "yundisk.json");
} }
if(fileExist(datapath + "live.txt")){ if(fileExist(datapath + "live.txt")){
if(!fileExist(rulepath + "live.txt")){ if(!fileExist(tvfile)){
writeFile(rulepath + "live.txt", fetch(datapath + "live.txt")); writeFile(tvfile, fetch(datapath + "live.txt"));
} }
deleteFile(datapath + "live.txt"); deleteFile(datapath + "live.txt");
} }

Loading…
Cancel
Save