From 59091a5ea94e30b0f85a1bb83508316f11c36718 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 22 Oct 2019 01:36:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9URL=E9=87=8D=E8=AF=95?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/core/Player.vue | 2 +- src/renderer/store/modules/download.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }