From 8d41bdfe4a7151b035572ba912b312171495ca15 Mon Sep 17 00:00:00 2001 From: pplok <1162963624@qq.com> Date: Sat, 18 Jan 2020 17:14:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/reptile/manhuadb_com/picture.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/bin/reptile/manhuadb_com/picture.js b/bin/reptile/manhuadb_com/picture.js index 9ee12ef..0d5d200 100644 --- a/bin/reptile/manhuadb_com/picture.js +++ b/bin/reptile/manhuadb_com/picture.js @@ -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) - - return list; - - } + // if(list){ + // // console.log(list) + + // } } }) + return list; // console.log(list) }