添加验证

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

@@ -82,6 +82,7 @@ let gethtml = (name) => {
let get = (name) => {
return new Promise(async (res, rej) => {
try {
let html;
await gethtml(name).then((res) => {
html = res
@@ -115,6 +116,10 @@ let get = (name) => {
list = { name: "扑飞漫画", list }
res(list);
} catch (error) {
rej([])
}
})
}