From 804725b1e3060e67fa520032973475145d0c0bd5 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 15 Apr 2023 08:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuSet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuSet.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SrcJuSet.js b/SrcJuSet.js index 00672395..ec1376c2 100644 --- a/SrcJuSet.js +++ b/SrcJuSet.js @@ -84,7 +84,6 @@ function SRCSet() { showLoading("正在导入,请稍后..."); let parseurl = aesDecode('SrcJu', input.split('¥')[1]); let content = parsePaste(parseurl); - log(content) let datalist2 = JSON.parse(aesDecode('SrcJu', content)); let sourcedata = fetch(sourcefile); if (sourcedata != "") { @@ -153,7 +152,11 @@ function SRCSet() { if (pasteurl) { let code = '聚阅接口¥' + aesEncode('SrcJu', pasteurl) + '¥共' + datalist.length + '条('+input+')'; copy(code); - return "toast://(全部)聚分享口令已生成"; + clearMyVar('duoselect'); + for(var i = 0; i < datalist.length; i++) { + updateItem(datalist[i].type+"_"+datalist[i].name, {title:datalist[i].name}) + } + return "toast://聚阅分享口令已生成"; } else { return "toast://分享失败,剪粘板或网络异常"; } @@ -240,7 +243,7 @@ function SRCSet() { let duoselect = storage0.getMyVar('duoselect')?storage0.getMyVar('duoselect'):[]; if(!duoselect.some(item => item.name == data.name && item.type==data.type)){ duoselect.push(data); - updateItem(id, {title:'‘‘’’'+data.name}) + updateItem(id, {title:''+data.name}) }else{ for(var i = 0; i < duoselect.length; i++) { if(duoselect[i].type+"_"+duoselect[i].name == id) {