From 1b1a9e36863dee6fac7d066849ee09a299a78219 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 13 Jul 2024 10:20:29 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index ea27ce84..0e0574bf 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -1,5 +1,6 @@ let datapath = "hiker://files/data/"+MY_RULE.title+"/"; //数据文件路径 -let rulepath = "hiker://files/rules/Src/Juying2/"; //缓存文件路径 +let rulepath = "hiker://files/rules/Src/Juying2/"; //规则文件路径 +let cachepath = "hiker://files/_cache/Juying2/"; //缓存文件路径 let jkfile = datapath + "jiekou.json"; let jxfile = datapath + "jiexi.json"; let cfgfile = rulepath + "config.json"; @@ -42,7 +43,7 @@ function getDatas(lx, isyx) { let input; if(dySource.startsWith('http')){ showLoading('正在加载订阅源,请稍后...'); - let dyJkTmpFile = "hiker://files/_cache/"+md5(Juconfig['dySource'])+".json"; + let dyJkTmpFile = cachepath + md5(Juconfig['dySource']) + ".json"; if(!fileExist(dyJkTmpFile)){ let contnet = getJkContnet(Juconfig['dySource']); if(contnet){ @@ -85,7 +86,7 @@ function getDatas(lx, isyx) { if(dySource.startsWith('file://')){ urlfile = 'hiker://files/' + extfile.split('/files/Documents/')[1]; }else if(dySource.startsWith('http')){ - urlfile = 'hiker://files/_cache/hipy_t3' + '_' + extfile.substr(extfile.lastIndexOf('/') + 1); + urlfile = cachepath + '_' + extfile.substr(extfile.lastIndexOf('/') + 1); try{ if(!fileExist(urlfile)){ let content = fetch(extfile, {timeout:2000});