AXCWG 5 months ago
parent
commit
1ac7f4a536
1 changed files with 8 additions and 6 deletions
  1. 8 6
      main.js

+ 8 - 6
main.js

@@ -26,9 +26,9 @@ const Kind = {
 }
 
 const db = mysql.createConnection({
-    host: 'mc.andyxie.cn',
-    user: 'instrunet',
-    password: 'Moyingren2015',
+    host: 'localhost',
+    user: 'root',
+    password: 'moyingren2015',
     database: "instrunet_data",
     pool: pool,
     enableKeepAlive: true,
@@ -530,9 +530,11 @@ app.get("/favicon.ico", function (req, res) {
 })
 let availCache = {};
 
-// setInterval(() => {
-//     availCache = {};
-// }, 1800000)
+setInterval(() => {
+    db.execute("SELECT 1", (err, result) => {
+
+    })
+}, 10000)
 
 // Fetch
 app.get('/:uuid', async function (req, res) {