From d150a4b4c2910254c10929c0b19a3530759f6a0c Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 14 Oct 2022 17:14:37 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index bd6caf72..b82492ba 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -2078,7 +2078,8 @@ function extension(){ if(getMyVar('importinput', '')==""&&getMyVar('importtype','0')!="2"){ return 'toast://请先输入链接地址' } - if(input!=""){ + let input = getMyVar('importinput', ''); + if(input){ let importrecord = JYconfig['importrecord']||[]; if(!importrecord.some(item => item.url == input)){ importrecord.push({type:getMyVar('importtype','0'),url:input}); @@ -2087,7 +2088,7 @@ function extension(){ } } require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js'); - let sm = Resourceimport(getMyVar('importinput', '')); + let sm = Resourceimport(input); return sm?'toast://'+sm:'toast://异常出错'; }, JYconfig, cfgfile), col_type: "text_2"