From 2189413a5d97373a5308c12ce77eda635b344e59 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 30 Mar 2023 20:59:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuman.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuMan.js => SrcJuman.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) rename SrcJuMan.js => SrcJuman.js (84%) diff --git a/SrcJuMan.js b/SrcJuman.js similarity index 84% rename from SrcJuMan.js rename to SrcJuman.js index 97f94bd8..9345f005 100644 --- a/SrcJuMan.js +++ b/SrcJuman.js @@ -1,13 +1,13 @@ //巨漫,接口型空壳小程序,接口分为主页源和搜索源 -let cfgfile = "hiker://files/rules/Src/JuMan/config.json"; -let JuMancfg=fetch(cfgfile); -if(JuMancfg != ""){ - eval("var JMconfig=" + JuMancfg+ ";"); +let cfgfile = "hiker://files/rules/Src/Juman/config.json"; +let Jumancfg=fetch(cfgfile); +if(Jumancfg != ""){ + eval("var JMconfig=" + Jumancfg+ ";"); }else{ var JMconfig= {}; } -let sourcefile = "hiker://files/rules/Src/JuMan/jiekou.json"; +let sourcefile = "hiker://files/rules/Src/Juman/jiekou.json"; let sourcedata = fetch(sourcefile); if(sourcedata != ""){ eval("var datalist=" + sourcedata+ ";"); @@ -112,13 +112,13 @@ function Version() { var nowVersion = "0.1";//现在版本 var nowtime = Date.now(); var oldtime = parseInt(getItem('VersionChecktime','0').replace('time','')); - if (getMyVar('SrcJuMan-VersionCheck', '0') == '0' && nowtime > (oldtime+12*60*60*1000)) { + if (getMyVar('SrcJuman-VersionCheck', '0') == '0' && nowtime > (oldtime+12*60*60*1000)) { try { eval(request(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('Comics','master') + 'SrcTmplVersion.js')) - if (parseFloat(newVersion.SrcJuMan) > parseFloat(nowVersion)) { + if (parseFloat(newVersion.SrcJuman) > parseFloat(nowVersion)) { confirm({ title:'发现新版本,是否更新?', - content:nowVersion+'=>'+newVersion.SrcJuMan+'\n'+newVersion.SrcJuMandesc[newVersion.SrcJuMan], + content:nowVersion+'=>'+newVersion.SrcJuman+'\n'+newVersion.SrcJumandesc[newVersion.SrcJuman], confirm: $.toString((nowtime) => { setItem('VersionChecktime', nowtime+'time'); deleteCache(); @@ -127,12 +127,12 @@ function Version() { },nowtime), cancel:'' }) - log('检测到新版本!\nV'+newVersion.SrcJuMan+'版本》'+newVersion.SrcJuMandesc[newVersion.SrcJuMan]); + log('检测到新版本!\nV'+newVersion.SrcJuman+'版本》'+newVersion.SrcJumandesc[newVersion.SrcJuman]); } - putMyVar('SrcJuMan-Version', '-V'+newVersion.SrcJuying); + putMyVar('SrcJuman-Version', '-V'+newVersion.SrcJuying); } catch (e) { } - putMyVar('SrcJuMan-VersionCheck', '1'); + putMyVar('SrcJuman-VersionCheck', '1'); }else{ - putMyVar('SrcJuMan-Version', '-V'+nowVersion); + putMyVar('SrcJuman-Version', '-V'+nowVersion); } }