From 41be8369e46db5e4be7fbb67fed1b50ce9acd2ec Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 2 Nov 2024 22:43:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyData.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyData.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/SrcJyData.js b/SrcJyData.js index fc19ded7..4bcc958e 100644 --- a/SrcJyData.js +++ b/SrcJyData.js @@ -326,6 +326,14 @@ function getYiData(jkdata, batchTest) { } else { let typehtml = dealJson(gethtml); let typelist = typehtml["class"] || []; + if (cate_onlyshow) { + for (var i = 0; i < typelist.length; i++) { + if (cate_onlyshow.indexOf(typelist[i].type_name) == -1 && typelist[i].type_pid!=0) { + typelist.splice(i, 1); + i = i - 1; + } + } + } typelist.forEach((it) => { if(it.type_name && it.type_id){ if(it.type_pid==0){ @@ -370,7 +378,8 @@ function getYiData(jkdata, batchTest) { 分类.splice(i, 1); i = i - 1; } - if(cate_onlyshow.length>0){ + + if(cate_onlyshow.length>0 && api_type!="cms"){ if (cate_onlyshow.indexOf(分类[i].split('$')[0]) == -1) { 分类.splice(i, 1); i = i - 1;