添加验证
This commit is contained in:
@@ -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([])
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user