From 654c150b405895a98d14fade99b91c5bb89eaf5e Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 13 Apr 2023 21:21: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 | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/SrcJuMethod.js b/SrcJuMethod.js index 00a7e6d8..a072bc36 100644 --- a/SrcJuMethod.js +++ b/SrcJuMethod.js @@ -46,9 +46,23 @@ function readData(fileid,datatype){ var jkdata = {}; } if(datatype=="1"){ - return jkdata.parse; + eval("let source = " + jkdata.parse); + if (source.ext && /^http/.test(source.ext)) { + requireCache(source.ext, 48); + parse = yidata; + } else { + parse = source; + } + return source; }else if(datatype=="2"){ - return jkdata.erparse; + eval("let source = " + jkdata.erparse); + if (source.ext && /^http/.test(source.ext)) { + requireCache(source.ext, 48); + parse = erdata; + } else { + parse = source; + } + return source; }else if(datatype=="0"){ return jkdata.public; }