爬取新数据
This commit is contained in:
parent
1917b17975
commit
dc1e3e4bde
@ -21,8 +21,8 @@ async function fetchAll({ args = {} }) {
|
||||
${args.order ? `ORDER BY song_id ${args.order}` : ''}
|
||||
${args.limit ? `LIMIT ${args.limit}` : ''}
|
||||
`;
|
||||
// 更新现有数据
|
||||
sql = `SELECT song_id FROM song WHERE ${whereClause} AND 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);
|
||||
@ -59,7 +59,6 @@ async function fetch({ songIdArray, debug = false }) {
|
||||
console.error(errors);
|
||||
return;
|
||||
}
|
||||
console.log("请求完成");
|
||||
// console.log(songResult.body.songs.map(item => JSON.stringify(item)));
|
||||
|
||||
let songAlbumRel = [], songArtistRel = [];
|
||||
|
Loading…
Reference in New Issue
Block a user