??改为|| 兼容node v12.13.1
This commit is contained in:
@@ -21,7 +21,7 @@ const artistInfoUtils = require('./src/getInfo/artistInfoUtils');
|
||||
const albumInfoUtils = require('./src/getInfo/albumInfoUtils');
|
||||
const lyricInfoUtils = require('./src/getInfo/lyricInfoUtils');
|
||||
const commentUtils = require('./src/getInfo/commentUtils');
|
||||
// const playlistUtils = require('./src/getInfo/playlistUtils');
|
||||
const playlistUtils = require('./src/getInfo/playlistUtils');
|
||||
|
||||
/**
|
||||
* 测试
|
||||
@@ -34,12 +34,14 @@ async function test() {
|
||||
// let res = await albumInfoUtils.fetch({ albumId: "9156", debug: true });
|
||||
// let res = await artistInfoUtils.fetch({ artistId: "12023508" });
|
||||
// let res = await songInfoUtils.fetch({ songId: "437608327" });
|
||||
// let res = await playlistUtils.fetch({ songId: "2320041657", debug: true });
|
||||
// let res = await playlistUtils.fetch({ playlistId: "4980157066", debug: true });
|
||||
|
||||
// let res = await albumInfoUtils.getFromDatabase({ albumId: "9156" });
|
||||
// let res = await artistInfoUtils.getFromDatabase({ artistId: "12023508" });
|
||||
// let res = await songInfoUtils.getFromDatabase({ songId: "437608327" });
|
||||
|
||||
let res = await dbUtils.query('INSERT IGNORE INTO song (`song_id`, `title`, `image`, `pub_date`) VALUES ?',
|
||||
[[[100, '4', '3', '4'], [200, '23', '4', '5']]]);
|
||||
console.log(res);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user