add 活跃统计

This commit is contained in:
2022-06-03 21:57:28 +08:00
parent fb2d9ae159
commit dc8fea04b6
7 changed files with 91 additions and 18 deletions

View File

@@ -20,7 +20,8 @@ export function query(sql){
const c = await connection()
c.query(sql,(err,data)=>{
if(err){
throw new Error("select error")
// throw new Error("sql error",err)
console.log(err)
}else {
c.destroy()
res(data)

View File

@@ -19,6 +19,3 @@ export async function isTable(name){
}
return false
}
console.log(await isTable("aaa"))