mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-05 19:38:55 +08:00
修复打开kw歌单失败时会无限重试的问题
This commit is contained in:
parent
dc1a7f457f
commit
43e45a770a
@ -6,3 +6,4 @@
|
|||||||
|
|
||||||
- 修复定时播放开启歌曲播放完毕再停止时,若倒计时已结束会导致无法播放歌曲的问题
|
- 修复定时播放开启歌曲播放完毕再停止时,若倒计时已结束会导致无法播放歌曲的问题
|
||||||
- 修复打开歌单失败时会导致应用崩溃的问题
|
- 修复打开歌单失败时会导致应用崩溃的问题
|
||||||
|
- 修复打开kw歌单失败时会无限重试的问题
|
||||||
|
@ -228,13 +228,13 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async getListDetailDigest5(id, page) {
|
async getListDetailDigest5(id, page, retryNum) {
|
||||||
const detailId = await this.getListDetailDigest5Info(id)
|
const detailId = await this.getListDetailDigest5Info(id, retryNum)
|
||||||
return this.getListDetailDigest5Music(detailId, page)
|
return this.getListDetailDigest5Music(detailId, page, retryNum)
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取歌曲列表内的音乐
|
// 获取歌曲列表内的音乐
|
||||||
getListDetail(id, page) {
|
getListDetail(id, page, retryNum = 0) {
|
||||||
// console.log(id)
|
// console.log(id)
|
||||||
if ((/[?&:/]/.test(id))) id = id.replace(this.regExps.listDetailLink, '$1')
|
if ((/[?&:/]/.test(id))) id = id.replace(this.regExps.listDetailLink, '$1')
|
||||||
else if (/^digest-/.test(id)) {
|
else if (/^digest-/.test(id)) {
|
||||||
@ -244,12 +244,12 @@ export default {
|
|||||||
switch (digest) {
|
switch (digest) {
|
||||||
case '8':
|
case '8':
|
||||||
break
|
break
|
||||||
case '13': return album.getAlbumListDetail(id, page)
|
case '13': return album.getAlbumListDetail(id, page, retryNum)
|
||||||
case '5':
|
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) {
|
filterListDetail(rawData) {
|
||||||
// console.log(rawData)
|
// console.log(rawData)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user