更换songmid的id值
parent
d10434285f
commit
b496e3c667
|
@ -67,9 +67,12 @@ export default {
|
||||||
},
|
},
|
||||||
filterData(rawList) {
|
filterData(rawList) {
|
||||||
// console.log(rawList)
|
// console.log(rawList)
|
||||||
|
let ids = new Set()
|
||||||
const list = []
|
const list = []
|
||||||
rawList.forEach(({ songData }) => {
|
rawList.forEach(({ songData }) => {
|
||||||
if (!songData) return
|
if (!songData) return
|
||||||
|
if (ids.has(songData.copyrightId)) return
|
||||||
|
ids.add(songData.copyrightId)
|
||||||
|
|
||||||
const types = []
|
const types = []
|
||||||
const _types = {}
|
const _types = {}
|
||||||
|
@ -100,7 +103,7 @@ export default {
|
||||||
// albumId: songData.album_id,
|
// albumId: songData.album_id,
|
||||||
source: 'mg',
|
source: 'mg',
|
||||||
interval: null,
|
interval: null,
|
||||||
songmid: songData.songId,
|
songmid: songData.copyrightId,
|
||||||
copyrightId: songData.copyrightId,
|
copyrightId: songData.copyrightId,
|
||||||
img: songData.picL || songData.M || songData.picS,
|
img: songData.picL || songData.M || songData.picS,
|
||||||
lrc: null,
|
lrc: null,
|
||||||
|
|
|
@ -75,7 +75,7 @@ export default {
|
||||||
name: item.songName,
|
name: item.songName,
|
||||||
albumName: item.albumName,
|
albumName: item.albumName,
|
||||||
albumId: item.albumId,
|
albumId: item.albumId,
|
||||||
songmid: item.id,
|
songmid: item.copyrightId,
|
||||||
copyrightId: item.copyrightId,
|
copyrightId: item.copyrightId,
|
||||||
source: 'mg',
|
source: 'mg',
|
||||||
interval: null,
|
interval: null,
|
||||||
|
|
|
@ -120,7 +120,7 @@ export default {
|
||||||
name: item.songName,
|
name: item.songName,
|
||||||
albumName: item.album,
|
albumName: item.album,
|
||||||
albumId: item.albumId,
|
albumId: item.albumId,
|
||||||
songmid: item.songId,
|
songmid: item.copyrightId,
|
||||||
copyrightId: item.copyrightId,
|
copyrightId: item.copyrightId,
|
||||||
source: 'mg',
|
source: 'mg',
|
||||||
interval: null,
|
interval: null,
|
||||||
|
|
Loading…
Reference in New Issue