修复wy源的歌曲音质匹配问题

This commit is contained in:
lyswhut
2021-05-15 17:27:25 +08:00
parent 354922195f
commit 336b40a102
5 changed files with 14 additions and 9 deletions
+2 -1
View File
@@ -13,7 +13,7 @@ export default {
return arr.join('、')
},
filterList({ songs, privileges }) {
// console.log(tracks, privileges)
// console.log(songs, privileges)
const list = []
songs.forEach((item, index) => {
const types = []
@@ -38,6 +38,7 @@ export default {
size,
}
}
case 192000:
case 128000:
if (item.l) {
size = sizeFormate(item.l.size)
+5 -3
View File
@@ -24,8 +24,9 @@ export default {
offset: limit * (page - 1),
}),
})
return searchRequest.promise.then(({ body }) =>
body && body.code === 200
return searchRequest.promise.then(({ body }) => {
// console.log(body)
return body && body.code === 200
? musicDetailApi.getList(body.result.songs.map(s => s.id)).then(({ list }) => {
this.total = body.result.songCount || 0
this.page = page
@@ -41,7 +42,8 @@ export default {
},
}
})
: body)
: body
})
},
getSinger(singers) {
let arr = []
+1
View File
@@ -139,6 +139,7 @@ export default {
size,
}
}
case 192000:
case 128000:
if (item.l) {
size = sizeFormate(item.l.size)