扑飞漫画
This commit is contained in:
@@ -37,16 +37,20 @@ let gethtml = async (name, page) => {
|
||||
} catch (error) {
|
||||
// console.log(error)
|
||||
}
|
||||
list = {name:"古风漫画",list}
|
||||
return list
|
||||
|
||||
|
||||
}
|
||||
|
||||
let getlist = async (name) => {
|
||||
let html;
|
||||
html = await gethtml(name, 1)
|
||||
// console.log(JSON.stringify(html))
|
||||
return html;
|
||||
let getlist = (name) => {
|
||||
return new Promise(async (res,rej)=>{
|
||||
let html;
|
||||
html = await gethtml(name, 1)
|
||||
// console.log(JSON.stringify(html))
|
||||
res(html);
|
||||
})
|
||||
|
||||
}
|
||||
// getlist("偷星九月天")
|
||||
module.exports = getlist
|
||||
Reference in New Issue
Block a user