From e61c3bee60f0201f733885e3a1402a09acf42bb3 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 25 May 2024 22:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuying.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuying.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/SrcJuying.js b/SrcJuying.js index 7b5dd137..f2f763b9 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -639,16 +639,19 @@ function yiji() { d.push({ title: "搜索", url: $.toString((searchurl) => { - if(/www\.aliyundrive\.com|www\.alipan\.com/.test(input)){ - input = input.replace('http','\nhttp'); - return $("hiker://empty#noRecordHistory##noHistory#").rule((input) => { - require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyAliDisk.js'); - aliShareUrl(input); - },input); - }else{ - return input + searchurl; - } - },searchurl), + if(input.trim() == ''){ + return "hiker://empty" + } + if(/www\.aliyundrive\.com|www\.alipan\.com/.test(input)){ + input = input.replace('http','\nhttp'); + return $("hiker://empty#noRecordHistory##noHistory#").rule((input) => { + require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJyAliDisk.js'); + aliShareUrl(input); + },input); + }else{ + return input + searchurl; + } + },searchurl), desc: "搜你想看的...", col_type: "input", extra: {