From d8205f9c13e14d35017f3247972b79e22e7af4b9 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 20 Jul 2024 21:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 2d30ddc3..1a53d9a4 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -175,6 +175,22 @@ function getDatas(lx, isyx) { let result = withoutStop.concat(withStop); return result; } +// 获取接口tags +function getJkTags(datas){ + datas = datas || getDatas('jk', 1); + let tags = []; + datas.forEach(it=>{ + let str = it.name; + let regex = /\[(.*?)\]/; + let match = str.match(regex); + if (match) { + if(tags.indexOf(match[1])==-1){ + tags.push(match[1]); + } + } + }) + return tags; +} //获取在线文件内容 function getJkContnet(url) { if(!url.startsWith('http')){