From 05866656e35329c0e8f01003a75564d636290045 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 14 Oct 2022 16:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJySet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJySet.js | 153 ++++++++++++++++++++++++++-------------------------- 1 file changed, 78 insertions(+), 75 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index e2386e85..3d83f82c 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -2004,82 +2004,85 @@ function extension(){ return "hiker://empty"; }) }); - d.push({ - title: '选择需要的导入项目', - col_type: "rich_text", - extra:{textSize:12} - }); - d.push({ - title:(getMyVar('importjiekou','0')=="1"?getide(1):getide(0))+'影视接口', - col_type:'text_3', - url:$('#noLoading#').lazyRule(() => { - if(getMyVar('importjiekou')=="1"){ - putMyVar('importjiekou','0'); - }else{ - putMyVar('importjiekou','1'); - } - refreshPage(false); - return "hiker://empty"; - }) - }); - d.push({ - title:(getMyVar('importjiexi','0')=="1"?getide(1):getide(0))+'解析接口', - col_type:'text_3', - url:$('#noLoading#').lazyRule(() => { - if(getMyVar('importjiexi')=="1"){ - putMyVar('importjiexi','0'); - }else{ - putMyVar('importjiexi','1'); - } - refreshPage(false); - return "hiker://empty"; - }) - }); - d.push({ - title:(getMyVar('importlive','0')=="1"?getide(1):getide(0))+'直播接口', - col_type:'text_3', - url:$('#noLoading#').lazyRule(() => { - if(getMyVar('importlive')=="1"){ - putMyVar('importlive','0'); - }else{ - putMyVar('importlive','1'); - } - refreshPage(false); - return "hiker://empty"; - }) - }); - d.push({ - title:'', - col_type: 'input', - desc: '请输入链接地址', - extra: { - titleVisible: false, - defaultValue: getMyVar('importinput', ''), - onChange: 'putMyVar("importinput",input)' - } - }); - d.push({ - title: '🆖 历史记录', - url: $(JYconfig['xunmigroup']?JYconfig['xunmigroup']:"全部","设置搜索时默认分组").input((JYconfig,cfgfile) => { - JYconfig['xunmigroup'] = input; - writeFile(cfgfile, JSON.stringify(JYconfig)); + if(getMyVar('importtype','0')!="0"){ + d.push({ + title: '选择需要的导入项目', + col_type: "rich_text", + extra:{textSize:12} + }); + d.push({ + title:(getMyVar('importjiekou','0')=="1"?getide(1):getide(0))+'影视接口', + col_type:'text_3', + url:$('#noLoading#').lazyRule(() => { + if(getMyVar('importjiekou')=="1"){ + putMyVar('importjiekou','0'); + }else{ + putMyVar('importjiekou','1'); + } refreshPage(false); - return 'toast://默认搜索分组'+(input?'已设置为:'+input:'已清空'); - }, JYconfig, cfgfile), - col_type: "text_2" - }); - d.push({ - title: '🆗 确定导入', - url: getMyVar('importjiekou')!="1"&&getMyVar('importjiexi')!="1"&&getMyVar('importlive')!="1"?'toast://请选择导入项目':$('#noLoading#').lazyRule(() => { - if(getMyVar('importinput', '')==""&&getMyVar('importtype','0')!="2"){ - return 'toast://请先输入链接地址' - } - require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js'); - let sm = Resourceimport(getMyVar('importinput', '')); - return sm?sm:'异常'; - }), - col_type: "text_2" - }); + return "hiker://empty"; + }) + }); + d.push({ + title:(getMyVar('importjiexi','0')=="1"?getide(1):getide(0))+'解析接口', + col_type:'text_3', + url:$('#noLoading#').lazyRule(() => { + if(getMyVar('importjiexi')=="1"){ + putMyVar('importjiexi','0'); + }else{ + putMyVar('importjiexi','1'); + } + refreshPage(false); + return "hiker://empty"; + }) + }); + d.push({ + title:(getMyVar('importlive','0')=="1"?getide(1):getide(0))+'直播接口', + col_type:'text_3', + url:$('#noLoading#').lazyRule(() => { + return 'toast://暂不支持'; + if(getMyVar('importlive')=="1"){ + putMyVar('importlive','0'); + }else{ + putMyVar('importlive','1'); + } + refreshPage(false); + return "hiker://empty"; + }) + }); + d.push({ + title:'', + col_type: 'input', + desc: '请输入链接地址', + extra: { + titleVisible: false, + defaultValue: getMyVar('importinput', ''), + onChange: 'putMyVar("importinput",input)' + } + }); + d.push({ + title: '🆖 历史记录', + url: $(JYconfig['xunmigroup']?JYconfig['xunmigroup']:"全部","设置搜索时默认分组").input((JYconfig,cfgfile) => { + JYconfig['xunmigroup'] = input; + writeFile(cfgfile, JSON.stringify(JYconfig)); + refreshPage(false); + return 'toast://默认搜索分组'+(input?'已设置为:'+input:'已清空'); + }, JYconfig, cfgfile), + col_type: "text_2" + }); + d.push({ + title: '🆗 确定导入', + url: getMyVar('importjiekou')!="1"&&getMyVar('importjiexi')!="1"&&getMyVar('importlive')!="1"?'toast://请选择导入项目':$('#noLoading#').lazyRule(() => { + if(getMyVar('importinput', '')==""&&getMyVar('importtype','0')!="2"){ + return 'toast://请先输入链接地址' + } + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js'); + let sm = Resourceimport(getMyVar('importinput', '')); + return sm?sm:'异常'; + }), + col_type: "text_2" + }); + } d.push({ title: '
', col_type: 'rich_text'