更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent 7ab37ba8c1
commit 0ce9fd95b6
  1. 4
      SrcJyAlist.js

@ -20,6 +20,7 @@ function gethtml(api,path,password) {
path = path || "";
password = password || "";
let html = fetch(api, {body: `{"path":`+path+`,"password":`+password+`}`,method:'POST'});
log(html);
return html;
}catch(e){
return "";
@ -51,13 +52,10 @@ function yiji() {
})
if (datalist.length > 0) {
let listapi = getMyVar('Alistapi', datalist[0].server) + "/api/fs/list";
log(listapi);
try{
let json = JSON.parse(gethtml(listapi,"",""));
log(json);
if(json.code==200){
let list = getlist(json.data.content);
log(list);
}
}catch(e){

Loading…
Cancel
Save