From c63bf812959b266db8e46d926c44554c39be75f5 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 3 May 2023 09:22:56 +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 | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index fa784e16..e99c12d9 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -3296,8 +3296,8 @@ function yundiskjiekou() { datalist.forEach(item => { d.push({ title: "💽 " + item.name + " (" + (item.erparse?"二解接口":"一解接口") + ")", - url: $(["分享", "编辑", "删除"], 1).select((filepath,yundiskapi,data) => { - if(input == "分享"){ + url: $(["分享", "编辑", "删除", "测试"], 1).select((filepath,yundiskapi,data) => { + if (input == "分享") { showLoading('分享上传中,请稍后...'); let oneshare = [] oneshare.push(data); @@ -3310,7 +3310,7 @@ function yundiskjiekou() { }else{ return "toast://分享失败,剪粘板或网络异常"; } - }else if(input == "编辑"){ + } else if (input == "编辑") { return $('hiker://empty#noRecordHistory##noHistory#').rule((filepath,yundiskapi,data) => { yundiskapi(filepath,data); },filepath,yundiskapi,data) @@ -3322,6 +3322,24 @@ function yundiskjiekou() { writeFile(filepath, JSON.stringify(datalist)); refreshPage(false); return 'toast://已删除'; + } else if (input == "测试") { + return $(getItem('searchtestkey', '斗罗大陆'),"输入测试搜索关键字").input(()=>{ + return $("hiker://empty#noRecordHistory##noHistory#").rule((name,data) => { + let d = []; + d.push({ + title: "", + url: 'hiker://empty', + col_type: 'text_center_1', + extra: { + id: "listloading", + lineVisible: false + } + }); + setResult(d); + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyAliDisk.js'); + aliDiskSearch(name,data); + },input,data) + }) } },filepath,yundiskapi,item), desc: '',