添加验证
This commit is contained in:
@@ -45,10 +45,15 @@ let gethtml = async (name, page) => {
|
||||
|
||||
let getlist = (name) => {
|
||||
return new Promise(async (res,rej)=>{
|
||||
let html;
|
||||
html = await gethtml(name, 1)
|
||||
// console.log(JSON.stringify(html))
|
||||
res(html);
|
||||
try {
|
||||
let html;
|
||||
html = await gethtml(name, 1)
|
||||
// console.log(JSON.stringify(html))
|
||||
res(html);
|
||||
} catch (error) {
|
||||
rej([])
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user