修复mg源评论加载失败
This commit is contained in:
parent
7452051293
commit
10a6ac28a6
@ -4,15 +4,15 @@ export default {
|
|||||||
getAlbum(songInfo, tryNum = 0) {
|
getAlbum(songInfo, tryNum = 0) {
|
||||||
let requestObj = httpFetch(`http://app.c.nf.migu.cn/MIGUM2.0/v1.0/content/queryAlbumSong?albumId=${songInfo.albumId}&pageNo=1`, {
|
let requestObj = httpFetch(`http://app.c.nf.migu.cn/MIGUM2.0/v1.0/content/queryAlbumSong?albumId=${songInfo.albumId}&pageNo=1`, {
|
||||||
headers: {
|
headers: {
|
||||||
sign: '46DB65104950B98FE451AD41047CC6C4',
|
// sign: '46DB65104950B98FE451AD41047CC6C4',
|
||||||
timestamp: 1603451430776,
|
// timestamp: 1603451430776,
|
||||||
appId: 'yyapp2',
|
// appId: 'yyapp2',
|
||||||
mode: 'android',
|
// mode: 'android',
|
||||||
ua: 'Android_migu',
|
// ua: 'Android_migu',
|
||||||
version: '6.9.4',
|
// version: '6.9.4',
|
||||||
osVersion: 'android 7.0',
|
// osVersion: 'android 7.0',
|
||||||
'User-Agent': 'okhttp/3.9.1',
|
// 'User-Agent': 'okhttp/3.9.1',
|
||||||
channel: '0146832',
|
// channel: '0146832',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
requestObj.promise = requestObj.promise.then(({ body }) => {
|
requestObj.promise = requestObj.promise.then(({ body }) => {
|
||||||
@ -22,7 +22,7 @@ export default {
|
|||||||
requestObj.cancelHttp = tryRequestObj.cancelHttp.bind(tryRequestObj)
|
requestObj.cancelHttp = tryRequestObj.cancelHttp.bind(tryRequestObj)
|
||||||
return tryRequestObj.promise
|
return tryRequestObj.promise
|
||||||
}
|
}
|
||||||
console.log(body)
|
// console.log(body)
|
||||||
return body.songList
|
return body.songList
|
||||||
})
|
})
|
||||||
return requestObj
|
return requestObj
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user