添加验证

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

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