修复手机分享的wy歌单、某些tx、kg歌单无法打开的问题

This commit is contained in:
lyswhut 2021-05-23 15:30:19 +08:00
parent bdc3eb78fa
commit f32f8b31df
4 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,4 @@
### 修复
- 修复进入播放详情歌词界面后的屏幕常亮不会被取消的问题
- 修复手机分享的wy歌单、某些tx、kg歌单无法打开的问题

View File

@ -334,7 +334,7 @@ export default {
Referer: link,
},
})
const { headers: { location }, statusCode, body } = await this._requestObj_listDetailLink.promise
const { url: location, statusCode, body } = await this._requestObj_listDetailLink.promise
// console.log(body, location)
if (statusCode > 400) return this.getUserListDetail(link, page, ++retryNum)
if (location) {

View File

@ -182,10 +182,10 @@ export default {
if (retryNum > 2) return Promise.reject(new Error('link try max num'))
this._requestObj_listDetailLink = httpFetch(link)
const { headers: { location }, statusCode } = await this._requestObj_listDetailLink.promise
const { url, statusCode } = await this._requestObj_listDetailLink.promise
// console.log(headers)
if (statusCode > 400) return this.handleParseId(link, ++retryNum)
return location == null ? link : location
return url
},
// 获取歌曲列表内的音乐

View File

@ -54,10 +54,9 @@ export default {
if (retryNum > 2) return Promise.reject(new Error('link try max num'))
this._requestObj_listDetailLink = httpFetch(link)
const { headers: { location }, statusCode } = await this._requestObj_listDetailLink.promise
// console.log(headers)
const { url, statusCode } = await this._requestObj_listDetailLink.promise
if (statusCode > 400) return this.handleParseId(link, ++retryNum)
return location == null ? link : location
return url
},
async getListDetail(id, page, tryNum = 0) { // 获取歌曲列表内的音乐