From 3e18720b81516809bbe80b2fc82ec56d5c357727 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 31 Jan 2024 16:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuPublic.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 52a1ddb7..83958784 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -11,6 +11,7 @@ if(Jucfg != ""){ let runTypes = ["漫画","小说","听书","图集","影视","音乐","聚合","其它"]; let runMode = Juconfig["runMode"] || "漫画"; let sourcename = Juconfig[runMode+'sourcename'] || "";//主页源名称 +let stopTypes = storage0.getItem('stopTypes',[]); let sourcefile = "hiker://files/rules/Src/Ju/jiekou.json"; let sourcedata = fetch(sourcefile); @@ -36,10 +37,17 @@ let erdatalist = yxdatalist.filter(it=>{ }); //获取分组名称数组 function getGroupNames(type) { - let jkdatalist = []; let snames = []; - - return runTypes; + if(type=="所有"){ + snames = runTypes; + }else{ + runTypes.forEach(it=>{ + if(stopTypes.indexOf(it)==-1){ + snames.push(it); + } + }) + } + return snames; } //获取接口列表数据 function getListData(lx, selectType) {