添加验证

This commit is contained in:
2020-01-17 15:33:56 +08:00
parent 878337a2f2
commit 716090b6ef
6 changed files with 75 additions and 53 deletions

View File

@@ -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([])
}
})
}