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