add 订阅历史

This commit is contained in:
2023-09-03 21:10:55 +08:00
parent 637e2799f2
commit c0c122e9ca
4 changed files with 59 additions and 44 deletions

View File

@@ -13,8 +13,8 @@ async function addSub(info){
}
// 获取所有订阅 (不包括已完成)
async function getSub(){
let sql = `select * from VideoInfo where enable=1`
async function getSub(state){
let sql = `select * from VideoInfo where enable=${state}`
let list = await getAll(sql)
return list
}