更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent 5ad1da52e0
commit 6fe7186152
  1. 4
      SrcJyAlist.js

@ -424,9 +424,7 @@ function alistList(alistapi,dirname){
let patht = MY_PARAMS.path.split('/'); let patht = MY_PARAMS.path.split('/');
for (let i = 0; i < paths.length-1; i++) { for (let i = 0; i < paths.length-1; i++) {
patht.length = patht.length-1; patht.length = patht.length-1;
log(patht);
let onpath = patht.join('/') || "/"; let onpath = patht.join('/') || "/";
log(onpath);
if(alistapi.password[onpath]){ if(alistapi.password[onpath]){
pwd = alistapi.password[onpath]; pwd = alistapi.password[onpath];
break; break;
@ -434,7 +432,7 @@ function alistList(alistapi,dirname){
} }
} }
} }
//log('pwd:'+pwd);
let json = JSON.parse(gethtml(alistapi.server + "/api/fs/list", MY_PARAMS.path, pwd)); let json = JSON.parse(gethtml(alistapi.server + "/api/fs/list", MY_PARAMS.path, pwd));
if(json.code==200){ if(json.code==200){
let dirlist = getlist(json.data.content||[],1); let dirlist = getlist(json.data.content||[],1);

Loading…
Cancel
Save