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