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参数不匹配,退出");