更换songmid的id值

pull/166/head
lyswhut 2020-01-10 22:13:53 +08:00
parent d10434285f
commit b496e3c667
3 changed files with 6 additions and 3 deletions

View File

@ -67,9 +67,12 @@ export default {
},
filterData(rawList) {
// console.log(rawList)
let ids = new Set()
const list = []
rawList.forEach(({ songData }) => {
if (!songData) return
if (ids.has(songData.copyrightId)) return
ids.add(songData.copyrightId)
const types = []
const _types = {}
@ -100,7 +103,7 @@ export default {
// albumId: songData.album_id,
source: 'mg',
interval: null,
songmid: songData.songId,
songmid: songData.copyrightId,
copyrightId: songData.copyrightId,
img: songData.picL || songData.M || songData.picS,
lrc: null,

View File

@ -75,7 +75,7 @@ export default {
name: item.songName,
albumName: item.albumName,
albumId: item.albumId,
songmid: item.id,
songmid: item.copyrightId,
copyrightId: item.copyrightId,
source: 'mg',
interval: null,

View File

@ -120,7 +120,7 @@ export default {
name: item.songName,
albumName: item.album,
albumId: item.albumId,
songmid: item.songId,
songmid: item.copyrightId,
copyrightId: item.copyrightId,
source: 'mg',
interval: null,