|
|
@ -20,7 +20,7 @@ function gethtml(api,path,password) { |
|
|
|
log(api); |
|
|
|
log(api); |
|
|
|
path = path || ""; |
|
|
|
path = path || ""; |
|
|
|
password = password || ""; |
|
|
|
password = password || ""; |
|
|
|
let html = fetch(api, {body: {"path":"","password":""},method:'POST'}); |
|
|
|
let html = fetch(api, {body: {"path":path,"password":password},method:'POST'}); |
|
|
|
log(html); |
|
|
|
log(html); |
|
|
|
return html; |
|
|
|
return html; |
|
|
|
}catch(e){ |
|
|
|
}catch(e){ |
|
|
@ -57,6 +57,7 @@ function yiji() { |
|
|
|
let json = JSON.parse(gethtml(listapi,"","")); |
|
|
|
let json = JSON.parse(gethtml(listapi,"","")); |
|
|
|
if(json.code==200){ |
|
|
|
if(json.code==200){ |
|
|
|
let list = getlist(json.data.content); |
|
|
|
let list = getlist(json.data.content); |
|
|
|
|
|
|
|
log(list); |
|
|
|
} |
|
|
|
} |
|
|
|
}catch(e){ |
|
|
|
}catch(e){ |
|
|
|
|
|
|
|
|
|
|
|