From 7be1cad234088e6e769f1ec2aa8e0aaee4558f7b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 29 Aug 2024 11:12:57 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index 29af7714..309e7dcd 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -1908,8 +1908,8 @@ function resource() { let input = getMyVar('importinput', '').trim(); if(input==""){ return 'toast://请先输入链接地址'; - }else if(importtype=="4" && !input.endsWith('/') && !(input.startsWith('/')||input.startsWith('file')||input.startsWith('hiker'))){ - return 'toast://文件夹路径不正确,以/结尾'; + }else if(importtype=="4" && !input.endsWith('/') && !input.startsWith('/')){ + return 'toast://文件夹路径不正确,以/开头结尾'; } let importtype = getMyVar('importtype','1'); let importrecord = Juconfig['importrecord']||[]; @@ -1939,7 +1939,7 @@ function resource() { return names; } let oldfiles = readDir(datapath+'libs_jk/'); - let newfiles = readDir(input).filter(v=>v.endsWith('.js') && oldfiles.filter(o=>o.includes(v).length==0)).map(v=>input+v); + let newfiles = readDir(input).filter(v=>v.endsWith('.js') && oldfiles.filter(o=>o.includes(v)).length==0).map(v=>input+v); log(newfiles); return "toast://111"; }