From 1afc8e24f224d125f4d40e1ff87ec03d653437d5 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 14 Apr 2023 16:19:17 +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 | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/SrcJuMethod.js b/SrcJuMethod.js index 3a3e78e2..527390f0 100644 --- a/SrcJuMethod.js +++ b/SrcJuMethod.js @@ -47,7 +47,7 @@ function readData(fileid,datatype){ let parse; let source; if(datatype==1){ - source = jkdata.parse; + eval("source = " + jkdata.parse); if (source.ext && /^http/.test(source.ext)) { requireCache(source.ext, 48); parse = yidata; @@ -55,8 +55,7 @@ function readData(fileid,datatype){ parse = source; } }else if(datatype==2){ - source = jkdata.erparse; - log(source.ext); + eval("source = " + jkdata.erparse); if (source.ext && /^http/.test(source.ext)) { requireCache(source.ext, 48); parse = erdata; @@ -64,11 +63,11 @@ function readData(fileid,datatype){ parse = source; } }else if(datatype==0){ - parse = jkdata.public; + eval("parse = " + jkdata.public); } - let data; - eval("data = " + parse); - return data; + //let data; + //eval("data = " + parse); + return parse; }catch(e){ log("读取接口本地缓存文件失败>"+e.message); return "";