From 465eea19f500393c5f95b35e788fb7d93988756c Mon Sep 17 00:00:00 2001 From: theluyuan <1162963624@qq.com> Date: Thu, 29 Jun 2023 21:59:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E7=9F=A5=E9=81=93=E5=86=99=E4=BA=86?= =?UTF-8?q?=E5=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/sql/download.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/util/sql/download.js b/util/sql/download.js index 3a24b67..016519d 100644 --- a/util/sql/download.js +++ b/util/sql/download.js @@ -1,8 +1,8 @@ const { run, getAll } = require("./base"); -function addDownList(title,url,save,downDate,isOk){ - let sql = `insert into download(title,url,save,downDate,isOk) values(?,?,?,?,?)` - run(sql,title,url,save,downDate,isOk) +function addDownList(title,url,save,downDate,isOk,vid){ + let sql = `insert into download(title,url,save,downDate,isOk,vid) values(?,?,?,?,?,?)` + run(sql,title,url,save,downDate,isOk,vid) } async function getDownList(){ @@ -21,6 +21,19 @@ async function setDownState(id,state){ await run(sql,state,id) } +async function getVideoInfo(url){ + if(url){ + let sql = `select * from VideoInfo where url = '?'` + let list = await getAll(sql,url) + }else{ + let sql = `insert into ` + } +} + +async function addVideoInfo(cover){ + +} + module.exports = { addDownList, getDownList,