mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-04 06:42:09 +08:00
修复歌曲播放出错时的URL刷新问题
This commit is contained in:
parent
84787f82b0
commit
bd68840459
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lx-music-mobile",
|
||||
"version": "0.8.1-beta4",
|
||||
"version": "0.8.1",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,3 +1,4 @@
|
||||
### 修复
|
||||
|
||||
- 修复随机播放模式下在同列表切其他歌曲不会清空已播放列表的问题
|
||||
- 修复歌曲播放出错时的URL刷新问题
|
||||
|
@ -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())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user