瀏覽代碼

Merge branch 'master' into user

AXCWG 3 月之前
父節點
當前提交
7d7308a4a5
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      main.js

+ 8 - 6
main.js

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