更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent b3202d997b
commit 8c602e0931
  1. 11
      SrcJyAlist.js

@ -219,9 +219,18 @@ function alistSearch(alistapi,key) {
deleteItemByCls('alist'); deleteItemByCls('alist');
let dirlist = getlist(json.data.content,1); let dirlist = getlist(json.data.content,1);
addItemBefore('homeloading', arrayAdd(dirlist,1,alistapi)); addItemBefore('homeloading', arrayAdd(dirlist,1,alistapi));
let filelist = getlist(json.data.content,0); let filelist = getlist(json.data.content,0);
addItemBefore('homeloading', arrayAdd(filelist,0,alistapi)); addItemBefore('homeloading', arrayAdd(filelist,0,alistapi));
if(dirlist.length==0&&filelist.length==0){
addItemBefore('homeloading', {
title: "未搜索到“"+key+"”",
url: "hiker://empty",
col_type: "text_center_1",
extra: {
cls: "alist"
}
});
}
} }
}catch(e){ }catch(e){
log(e.message); log(e.message);

Loading…
Cancel
Save