From 408f2191d8908546e01f9924c114f790029cae15 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 28 Jul 2024 10:30:08 +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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index db92e9b8..71f59c8b 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -4,6 +4,7 @@ let cachepath = "hiker://files/_cache/Juying2/"; //缓存文件路径 let jkfile = rulepath + "jiekou.json"; let jxfile = rulepath + "jiexi.json"; let ypfile = rulepath + "yundisk.json"; +let tvfile = rulepath + "live.txt"; 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); @@ -20,14 +21,14 @@ if(fileExist(datapath + "jiekou.json")){ deleteFile(datapath + "jiekou.json"); } if(fileExist(datapath + "yundisk.json")){ - if(!fileExist(jkfile)){ - writeFile(jkfile, fetch(datapath + "yundisk.json")); + if(!fileExist(ypfile)){ + writeFile(ypfile, 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")); + if(!fileExist(tvfile)){ + writeFile(tvfile, fetch(datapath + "live.txt")); } deleteFile(datapath + "live.txt"); }