修复歌曲播放出错时的URL刷新问题

This commit is contained in:
lyswhut 2021-09-17 11:22:46 +08:00
parent 84787f82b0
commit bd68840459
3 changed files with 5 additions and 4 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "lx-music-mobile",
"version": "0.8.1-beta4",
"version": "0.8.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,3 +1,4 @@
### 修复
- 修复随机播放模式下在同列表切其他歌曲不会清空已播放列表的问题
- 修复歌曲播放出错时的URL刷新问题

View File

@ -187,7 +187,7 @@ export default async() => {
console.log('====TEMP PAUSE====')
TrackPlayer.pause()
if (retryTrack) {
if (retryTrack.id == retryGetUrlId) {
if (retryTrack.musicId == retryGetUrlId) {
if (++retryGetUrlNum > 1) {
store.dispatch(playerAction.playNext())
retryGetUrlId = null
@ -195,10 +195,10 @@ export default async() => {
return
}
} else {
retryGetUrlId = retryTrack.id
retryGetUrlId = retryTrack.musicId
retryGetUrlNum = 0
}
store.dispatch(playerAction.refreshMusicUrl(retryTrack.original, errorTime))
store.dispatch(playerAction.refreshMusicUrl(global.playInfo.currentPlayMusicInfo, errorTime))
} else {
store.dispatch(playerAction.playNext())
}