This commit is contained in:
2020-01-03 14:29:01 +08:00
parent 0ee00e6bec
commit a01152fc8a
10 changed files with 3304 additions and 89 deletions

View File

@@ -30,7 +30,16 @@ let gethtml = async (name, page) => {
// res(a.text)
text = a.data
})
return await getcontlist(text)
let list = []
try {
list = await getcontlist(text)
} catch (error) {
// console.log(error)
}
return list
}
let getlist = async (name) => {

View File

@@ -17,6 +17,7 @@ let getscript = async (url) => {
eval(text)
var reg = /^http(s)?:\/\/(.*?)\//
imghost = reg.exec(pageImage)[2]
imghost = "http://" + imghost
// imghost 图片域名
// chapterPath 图片基本链接path
// chapterImages 图片地址数组