mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-11 06:25:21 +08:00
修正直播源检测出错时返回结果
This commit is contained in:
@@ -32,7 +32,6 @@ axios.defaults.retryDelay = 1000
|
||||
axios.interceptors.response.use(function (response) {
|
||||
// 对响应数据做些事
|
||||
if (response.status && response.status === 200 && response.request.responseURL.includes('api.php') && !response.data.startsWith('<?xml')) {
|
||||
// console.log(response)
|
||||
}
|
||||
return response
|
||||
}, function (err) { // 请求错误时做些事
|
||||
@@ -308,7 +307,7 @@ const zy = {
|
||||
resolve(false)
|
||||
}
|
||||
}).catch(e => {
|
||||
reject(e)
|
||||
resolve(false)
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user