diff --git a/src/renderer/components/core/Player.vue b/src/renderer/components/core/Player.vue index a016914c..bef208b0 100644 --- a/src/renderer/components/core/Player.vue +++ b/src/renderer/components/core/Player.vue @@ -211,7 +211,7 @@ export default { if (!this.musicInfo.songmid) return console.log('出错') this.stopPlay() - if (this.listId != 'download' && this.audio.error.code !== 1 && this.retryNum < 3) { // 若音频URL无效则尝试刷新3次URL + if (this.listId != 'download' && this.audio.error.code !== 1 && this.retryNum < 2) { // 若音频URL无效则尝试刷新2次URL // console.log(this.retryNum) this.audioErrorTime = this.audio.currentTime // 记录出错的播放时间 this.retryNum++ diff --git a/src/renderer/store/modules/download.js b/src/renderer/store/modules/download.js index 8ada1782..9be16982 100644 --- a/src/renderer/store/modules/download.js +++ b/src/renderer/store/modules/download.js @@ -195,7 +195,7 @@ const actions = { // console.log(err.code, err.message) commit('onError', downloadInfo) // console.log(tryNum[downloadInfo.key]) - if (++tryNum[downloadInfo.key] > 5) { + if (++tryNum[downloadInfo.key] > 2) { _this.dispatch('download/startTask') return }