更改URL重试刷新次数

pull/96/head
lyswhut 2019-10-22 01:36:25 +08:00
parent 31e8b466cf
commit 59091a5ea9
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ export default {
if (!this.musicInfo.songmid) return if (!this.musicInfo.songmid) return
console.log('出错') console.log('出错')
this.stopPlay() this.stopPlay()
if (this.listId != 'download' && this.audio.error.code !== 1 && this.retryNum < 3) { // URL3URL if (this.listId != 'download' && this.audio.error.code !== 1 && this.retryNum < 2) { // URL2URL
// console.log(this.retryNum) // console.log(this.retryNum)
this.audioErrorTime = this.audio.currentTime // this.audioErrorTime = this.audio.currentTime //
this.retryNum++ this.retryNum++

View File

@ -195,7 +195,7 @@ const actions = {
// console.log(err.code, err.message) // console.log(err.code, err.message)
commit('onError', downloadInfo) commit('onError', downloadInfo)
// console.log(tryNum[downloadInfo.key]) // console.log(tryNum[downloadInfo.key])
if (++tryNum[downloadInfo.key] > 5) { if (++tryNum[downloadInfo.key] > 2) {
_this.dispatch('download/startTask') _this.dispatch('download/startTask')
return return
} }