完成
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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 图片地址数组
|
||||
|
||||
Reference in New Issue
Block a user