mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复手机分享的wy歌单、某些tx、kg歌单无法打开的问题
This commit is contained in:
parent
bdc3eb78fa
commit
f32f8b31df
@ -1,3 +1,4 @@
|
||||
### 修复
|
||||
|
||||
- 修复进入播放详情歌词界面后的屏幕常亮不会被取消的问题
|
||||
- 修复手机分享的wy歌单、某些tx、kg歌单无法打开的问题
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
},
|
||||
|
||||
// 获取歌曲列表内的音乐
|
||||
|
@ -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) { // 获取歌曲列表内的音乐
|
||||
|
Loading…
x
Reference in New Issue
Block a user