From deebf8877e15594e0fb8fba12118b102ab5b576e Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 21 Jun 2024 15:17:09 +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, 7 insertions(+), 2 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index c17c779a..6efc7953 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -14,10 +14,15 @@ let sourceName = homeSource.name; let sourceGroup = homeSource.group || homeSource.type; let sourceUrl = homeSource.url; -let jkfile = "hiker://files/rules/Src/Juying2/jiekou.json"; -let jxfile = "hiker://files/rules/Src/Juying2/jiexi.json"; +let rulePath = "hiker://files/rules/Src/Juying2/"; //规则文件路径 +let dataPath = "hiker://files/data2/" + MY_RULE.title + "/"; //数据文件路径 +let cachePath = "hiker://files/cache/src/Juying2/"; //缓存文件路径 +let jkfile = rulePath + "jiekou.json"; +let jxfile = rulePath + "jiexi.json"; let timeout = 6000; +globalMap0.putMyVar('gmParams',{rulePath:rulePath,dataPath:dataPath,cachePath:cachePath}); + function getFile(lx) { let file = lx=='jk'?jkfile:jxfile; return file;