From cea262bd00aab6f0bbef90e749ccdbae970f590d Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 22 May 2024 21:46:34 +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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 9b85ae15..91cb2539 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -11,9 +11,13 @@ if(Jucfg != ""){ let jkfile = "hiker://files/rules/Src/Juying2/jiekou.json"; let jxfile = "hiker://files/rules/Src/Juying2/jiexi.json"; +function getFile(lx) { + let file = lx=='jk'?jkfile:jxfile; + return file; +} function getDatas(lx) { let datalist = []; - let sourcefile = lx=='jk'?jkfile:jxfile; + let sourcefile = getFile(lx); let sourcedata = fetch(sourcefile); if(sourcedata != ""){ try{