修复打开kw歌单失败时会无限重试的问题

This commit is contained in:
lyswhut 2021-06-03 15:13:12 +08:00
parent dc1a7f457f
commit 43e45a770a
2 changed files with 8 additions and 7 deletions

View File

@ -6,3 +6,4 @@
- 修复定时播放开启歌曲播放完毕再停止时,若倒计时已结束会导致无法播放歌曲的问题
- 修复打开歌单失败时会导致应用崩溃的问题
- 修复打开kw歌单失败时会无限重试的问题

View File

@ -228,13 +228,13 @@ export default {
}
})
},
async getListDetailDigest5(id, page) {
const detailId = await this.getListDetailDigest5Info(id)
return this.getListDetailDigest5Music(detailId, page)
async getListDetailDigest5(id, page, retryNum) {
const detailId = await this.getListDetailDigest5Info(id, retryNum)
return this.getListDetailDigest5Music(detailId, page, retryNum)
},
// 获取歌曲列表内的音乐
getListDetail(id, page) {
getListDetail(id, page, retryNum = 0) {
// console.log(id)
if ((/[?&:/]/.test(id))) id = id.replace(this.regExps.listDetailLink, '$1')
else if (/^digest-/.test(id)) {
@ -244,12 +244,12 @@ export default {
switch (digest) {
case '8':
break
case '13': return album.getAlbumListDetail(id, page)
case '13': return album.getAlbumListDetail(id, page, retryNum)
case '5':
default: return this.getListDetailDigest5(id, page)
default: return this.getListDetailDigest5(id, page, retryNum)
}
}
return this.getListDetailDigest8(id, page)
return this.getListDetailDigest8(id, page, retryNum)
},
filterListDetail(rawData) {
// console.log(rawData)