From 3554f0c35fb4b8fba3a7c176a1bff39438b662d0 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 12 Apr 2023 21:05:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJu.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/SrcJu.js b/SrcJu.js index d289ce55..1a24bdff 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -18,16 +18,13 @@ function yiji() { } else { parse = source; } - storage0.putMyVar('主页源信息',{name: sourcename, type: runMode}); - /* + storage0.putMyVar('主页源接口信息',{name: sourcename, type: runMode});//传导给方法文件 try{ require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJuDataCache.js'); cacheData(sourcedata[0]); - initConfig({fileid: sourcedata[0].name+'-'+sourcedata[0].type}); }catch(e){ log("缓存临时文件失败>"+e.message); } - */ 页码 = parse["页码"]; if(!getMyVar(runMode+"_"+sourcename)){ toast("当前主页源:" + sourcename + (parse["作者"] ? ",作者:" + parse["作者"] : "")); @@ -76,7 +73,7 @@ function yiji() { clearMyVar("分类"); clearMyVar("更新"); clearMyVar(runMode+"_"+sourcename); - clearMyVar("主页源信息"); + clearMyVar("主页源接口信息"); Juconfig["runMode"] = runMode; Juconfig[runMode+'sourcename'] = input; writeFile(cfgfile, JSON.stringify(Juconfig)); @@ -147,6 +144,7 @@ function erji() { clearMyVar('erjiextra'); clearMyVar('SrcJudescload'); clearMyVar('已选择换源列表'); + clearMyVar('二级源接口信息'); if(getMyVar('SrcBookCase')){ clearMyVar('SrcBookCase'); refreshPage(false); @@ -174,6 +172,7 @@ function erji() { surl = datasource[i].surl || ""; if(sname&&surl){ erjiextra = datasource[i]; + storage0.putMyVar('二级源接口信息',{name: sname, type: stype}); break; } }