From 3ae0f10c8eb11469d064b39e350d31fc2df0f0e4 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 18 Feb 2023 10:56:05 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SrcJyAlist.js b/SrcJyAlist.js index d2c4bade..43a504d8 100644 --- a/SrcJyAlist.js +++ b/SrcJyAlist.js @@ -225,7 +225,7 @@ function alistUrl(api,path,pwd,sign) { function alistSearch(api,key) { deleteItemByCls('alist'); - try{ + try{//content-type: application/json;charset=UTF-8 let json = JSON.parse(fetch(api + "/api/fs/search", {body:{"per_page":100,"page":1,"parent":"/","keywords":key},method:'POST',timeout:10000})); log(json); if(json.code==200){ @@ -236,6 +236,6 @@ function alistSearch(api,key) { addItemBefore('homeloading', arrayAdd(filelist,0,alistapi)); } }catch(e){ - + log(e.message); } } \ No newline at end of file