This commit is contained in:
pplok 2020-01-18 17:14:40 +08:00
parent cd79065a17
commit 8d41bdfe4a

View File

@ -17,11 +17,11 @@ let getscript = async (url) => {
eval(text)
let chapterImages = Buffer.from(img_data, 'base64').toString()
chapterImages = JSON.parse(chapterImages)
let list = []
let lists = []
for(let i in chapterImages){
list.push(chapterImages[i].img)
lists.push(chapterImages[i].img)
}
chapterImages = list
chapterImages = lists
// var reg = /^http(s)?:\/\/(.*?)\//
// imghost = reg.exec(pageImage)[2]
let imghost = $(".vg-r-data").eq(0).attr("data-host")
@ -38,14 +38,13 @@ let getscript = async (url) => {
// let down = pageUrl.replace("https://www.gufengmh8.com","") + nextChapterData.id + ".html"
// let upurl = pageUrl.replace("https://www.gufengmh8.com","") + prevChapterData.id + ".html"
list = { imghost, chapterPath, chapterImages}
if(list){
// console.log(list)
// if(list){
// // console.log(list)
return list;
}
// }
}
})
return list;
// console.log(list)
}