From 25b6f1fcae595c68b835c9eba03ca3365b1b9b80 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 13 Apr 2023 17:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuMethod.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuMethod.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/SrcJuMethod.js b/SrcJuMethod.js index 990d2cb1..6bd869a7 100644 --- a/SrcJuMethod.js +++ b/SrcJuMethod.js @@ -29,6 +29,20 @@ function cacheData(jkdata){ let fileid = jkdata.type + '_'+ jkdata.name; let cachefile = `hiker://files/cache/_fileSelect_${fileid}.json`; if (!fileExist(cachefile)) { + if(jkdata.parse){ + eval("let source = " + jkdata.parse); + if(source.ext && /^http/.test(source.ext)){ + requireCache(source.ext, 48); + jkdata.parse = yidata; + } + } + if(jkdata.erparse){ + eval("let source = " + jkdata.erparse); + if(source.ext && /^http/.test(source.ext)){ + requireCache(source.ext, 48); + jkdata.erparse = erdata; + } + } writeFile(cachefile,JSON.stringify(jkdata)); } }