diff --git a/netease_music/sql/structure.sql b/netease_music/sql/structure.sql index cac2c7e..11e4e68 100644 --- a/netease_music/sql/structure.sql +++ b/netease_music/sql/structure.sql @@ -2,7 +2,7 @@ CREATE DATABASE `neteaseMusic` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ USE `neteaseMusic`; CREATE TABLE `song` ( `song_id` int(10) unsigned NOT NULL COMMENT '歌曲id', - `title` varchar(200)NOT NULL COMMENT '歌曲名', + `title` varchar(500)NOT NULL COMMENT '歌曲名', `type` tinyint(4) NOT NULL COMMENT ' 0: 一般类型 1: 通过云盘上传的音乐,网易云不存在公开对应 2: 通过云盘上传的音乐,网易云存在公开对应', `alias` json DEFAULT NULL COMMENT '歌曲别名(JSON格式数组)', `pop` float DEFAULT NULL COMMENT '歌曲热度', diff --git a/netease_music/src/getInfo/songInfoUtils.js b/netease_music/src/getInfo/songInfoUtils.js index af64f8b..adfe63c 100644 --- a/netease_music/src/getInfo/songInfoUtils.js +++ b/netease_music/src/getInfo/songInfoUtils.js @@ -22,7 +22,7 @@ async function fetchAll({ args = {} }) { ${args.limit ? `LIMIT ${args.limit}` : ''} `; // 更新现有数据 - sql = `SELECT song_id FROM song WHERE data_version = 1`; + sql = `SELECT song_id FROM song WHERE ${whereClause} AND data_version = 1`; // 测试用 // sql = `SELECT song_id FROM song_artist_relation group by song_id limit 10`; console.log(sql);