From 6f359ae08058f8dfa0cd46fa2b9d496d26c48bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=91=98=E5=B0=8F=E5=A2=A8?= <2291200076@qq.com> Date: Sat, 29 Oct 2022 18:34:54 +0800 Subject: [PATCH] =?UTF-8?q?hifini=E7=88=AC=E5=8F=96=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 9 +++++++++ auto.bat | 5 ----- hifini_music/sql/create_table_sql.sql | 1 - netease_music/src/assistantUtils.js | 2 +- netease_music/src/index.js | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) delete mode 100644 auto.bat diff --git a/.vscode/launch.json b/.vscode/launch.json index 9fcb7bd..6eaf67d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,6 +4,15 @@ // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "type": "node", + "request": "launch", + "name": "hifini_music node index", + "skipFiles": [ + "/**" + ], + "program": "${workspaceFolder}\\hifini_music\\index.js" + }, { "type": "node", "request": "launch", diff --git a/auto.bat b/auto.bat deleted file mode 100644 index b8a7b14..0000000 --- a/auto.bat +++ /dev/null @@ -1,5 +0,0 @@ -cd ./netease_music -start auto.bat -cd ../hifini_music -start auto.bat -exit \ No newline at end of file diff --git a/hifini_music/sql/create_table_sql.sql b/hifini_music/sql/create_table_sql.sql index ea9595a..a24ca36 100644 --- a/hifini_music/sql/create_table_sql.sql +++ b/hifini_music/sql/create_table_sql.sql @@ -1,5 +1,4 @@ SET NAMES utf8mb4; -SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for hifini_forum diff --git a/netease_music/src/assistantUtils.js b/netease_music/src/assistantUtils.js index 1e77547..5d2300f 100644 --- a/netease_music/src/assistantUtils.js +++ b/netease_music/src/assistantUtils.js @@ -22,7 +22,7 @@ async function migrateIdsFromCheckToFetch(tableName, fieldName, insertSql = null let ids = idsResult.map(row => row.id); // console.log("ids", ids); if (ids.length == 0) { - console.log(`${tableName} done.`); + // console.log(`${tableName} done.`); break; }; diff --git a/netease_music/src/index.js b/netease_music/src/index.js index 5f1b829..39ecd95 100644 --- a/netease_music/src/index.js +++ b/netease_music/src/index.js @@ -84,7 +84,7 @@ async function main(args) { case 'assistant': await assistantUtils.updateWaitTable(); - await sleepUtils.sleep(10 * 1000); + await sleepUtils.sleep(20 * 1000); break; default: console.log("utils参数不匹配,退出");