From 332221319f83d2f1ca26768d45c35034e766ac13 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 22 Feb 2023 11:26:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyAlist.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyAlist.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SrcJyAlist.js b/SrcJyAlist.js index 2fd50a16..4c7aa769 100644 --- a/SrcJyAlist.js +++ b/SrcJyAlist.js @@ -141,6 +141,7 @@ function alistHome() { try{ let inputname = input.split('¥')[0]; if(inputname=="聚影Alist"){ + showLoading("正在导入,请稍后..."); let parseurl = aesDecode('Juying', input.split('¥')[1]); let content = parsePaste(parseurl); let datalist = JSON.parse(aesDecode('Juying', content)); @@ -148,6 +149,7 @@ function alistHome() { eval("var alistData=" + fetch(alistfile)); let jknum = alistData.drives.length; }catch(e){ + hideLoading(); var alistData= {drives:[]}; } let newdatalist = alistData.drives; @@ -160,6 +162,7 @@ function alistHome() { } alistData.drives = newdatalist; writeFile(alistfile, JSON.stringify(alistData)); + hideLoading(); refreshPage(false); return "toast://合计"+datalist.length+"个,导入"+num+"个"; }else{ @@ -199,9 +202,11 @@ function alistHome() { copy(item.name+item.server); return "hiker://empty"; }else if(input=="分享"){ + showLoading('分享上传中,请稍后...'); let oneshare = [] oneshare.push(item); let pasteurl = sharePaste(aesEncode('Juying', JSON.stringify(oneshare))); + hideLoading(); if(pasteurl){ let code = '聚影Alist¥'+aesEncode('Juying', pasteurl)+'¥共1条'; copy(code);