From 30c8c5e356818c59a1809171a6740dcccbffa341 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 5 Apr 2023 19:18:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJmSet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJmSet.js | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/SrcJmSet.js b/SrcJmSet.js index eee4ea0f..917a9ffd 100644 --- a/SrcJmSet.js +++ b/SrcJmSet.js @@ -1,7 +1,27 @@ ////本代码仅用于个人学习,请勿用于其他作用,下载后请24小时内删除,代码虽然是公开学习的,但请尊重作者,应留下说明 function SRCSet() { setPageTitle('聚漫接口 | ♥管理'); - require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJmPublic.js'); + + let cfgfile = "hiker://files/rules/Src/Juman/config.json"; + let Jumancfg=fetch(cfgfile); + if(Jumancfg != ""){ + eval("var JMconfig=" + Jumancfg+ ";"); + }else{ + var JMconfig= {}; + } + let yijisource = JMconfig['yijisource'] || ""; + + let filepath = "hiker://files/rules/Src/Juman/jiekou.json"; + let sourcedata = fetch(filepath); + if(sourcedata != ""){ + eval("var datalist=" + sourcedata+ ";"); + }else{ + var datalist = []; + } + + let yidatalist = datalist.filter(it=>{ + return it.parse; + }); function manhuaapi(filepath, data) { addListener("onClose", $.toString(() => { @@ -108,7 +128,7 @@ function SRCSet() { } catch (e) { return "toast://接口数据异常,请确认对象格式"; } - }, sourcefile) + }, filepath) }); setResult(d); } @@ -135,7 +155,7 @@ function SRCSet() { url: $('hiker://empty#noRecordHistory##noHistory#').rule((filepath, manhuaapi) => { setPageTitle('增加 | 聚漫接口'); manhuaapi(filepath); - }, sourcefile, manhuaapi), + }, filepath, manhuaapi), img: "https://lanmeiguojiang.com/tubiao/more/25.png", col_type: "icon_small_3" }); @@ -178,7 +198,7 @@ function SRCSet() { log(e.message); return "toast://聚漫√:口令有误"; } - }, sourcefile), + }, filepath), img: "https://lanmeiguojiang.com/tubiao/more/43.png", col_type: "icon_small_3" }); @@ -233,7 +253,7 @@ function SRCSet() { refreshPage(false); return 'toast://已删除'; } - }, sourcefile, manhuaapi, item), + }, filepath, manhuaapi, item), desc: '', col_type: "text_1" });