From 3490e9cbfa2074625b29a8762c7d98af2033bc35 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 28 Jul 2024 10:28:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index f516e028..db92e9b8 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -3,7 +3,7 @@ let rulepath = "hiker://files/rules/Src/Juying2/"; //规则文件路径 let cachepath = "hiker://files/_cache/Juying2/"; //缓存文件路径 let jkfile = rulepath + "jiekou.json"; let jxfile = rulepath + "jiexi.json"; -let ypfile = datapath + "yundisk.json"; +let ypfile = rulepath + "yundisk.json"; let cfgfile = rulepath + "config.json"; let sortfile = rulepath + "jksort.json"; 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"); } +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 Jucfg=fetch(cfgfile);