updmo
This commit is contained in:
parent
072c269687
commit
158f2545ba
@ -59,8 +59,8 @@ export default {
|
|||||||
},
|
},
|
||||||
}).promise.then(({ body }) => {
|
}).promise.then(({ body }) => {
|
||||||
// console.log(body)
|
// console.log(body)
|
||||||
if (!body.data.list.global_specialid) Promise.reject(new Error('Failed to get global collection id.'))
|
if (!body.data.global_specialid) Promise.reject(new Error('Failed to get global collection id.'))
|
||||||
return body.data.list.global_specialid
|
return body.data.global_specialid
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// async getListInfoBySpecialId(special_id, retry = 0) {
|
// async getListInfoBySpecialId(special_id, retry = 0) {
|
||||||
@ -87,16 +87,16 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
// },
|
// },
|
||||||
async getSongListDetailByGlobalSpecialId(id, page, limit = 100, retry = 0) {
|
// async getSongListDetailByGlobalSpecialId(id, page, limit = 100, retry = 0) {
|
||||||
if (++retry > 2) throw new Error('failed')
|
// if (++retry > 2) throw new Error('failed')
|
||||||
console.log(id)
|
// console.log(id)
|
||||||
const params = `specialid=0&need_sort=1&module=CloudMusic&clientver=11409&pagesize=${limit}&global_collection_id=${id}&userid=0&page=${page}&type=1&area_code=1&appid=1005`
|
// const params = `specialid=0&need_sort=1&module=CloudMusic&clientver=11409&pagesize=${limit}&global_collection_id=${id}&userid=0&page=${page}&type=1&area_code=1&appid=1005`
|
||||||
return httpFetch(`http://pubsongscdn.tx.kugou.com/v2/get_other_list_file?${params}&signature=${signatureParams(params)}`).promise.then(({ body }) => {
|
// return httpFetch(`http://pubsongscdn.tx.kugou.com/v2/get_other_list_file?${params}&signature=${signatureParams(params)}`).promise.then(({ body }) => {
|
||||||
// console.log(body)
|
// // console.log(body)
|
||||||
if (body.data?.info == null) return this.getSongListDetailByGlobalSpecialId(id, page, limit, retry)
|
// if (body.data?.info == null) return this.getSongListDetailByGlobalSpecialId(id, page, limit, retry)
|
||||||
return body.data.info
|
// return body.data.info
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
async getListDetailBySpecialId(id) {
|
async getListDetailBySpecialId(id) {
|
||||||
const globalSpecialId = await this.getGlobalSpecialId(id)
|
const globalSpecialId = await this.getGlobalSpecialId(id)
|
||||||
// const limit = 100
|
// const limit = 100
|
||||||
@ -407,13 +407,14 @@ export default {
|
|||||||
const limit = total > 300 ? 300 : total
|
const limit = total > 300 ? 300 : total
|
||||||
total -= limit
|
total -= limit
|
||||||
page += 1
|
page += 1
|
||||||
const params = `specialid=0&need_sort=1&module=CloudMusic&clientver=11409&pagesize=${limit}&global_collection_id=${id}&userid=0&page=${page}&type=1&area_code=1&appid=1005`
|
const params = 'appid=1058&global_specialid=' + id + '&specialid=0&plat=0&version=8000&page=' + page + '&pagesize=' + limit + '&srcappid=2919&clientver=20000&clienttime=1586163263991&mid=1586163263991&uuid=1586163263991&dfid=-'
|
||||||
tasks.push(this.createHttp(`http://pubsongscdn.tx.kugou.com/v2/get_other_list_file?${params}&signature=${signatureParams(params)}`, {
|
tasks.push(this.createHttp(`https://mobiles.kugou.com/api/v5/special/song_v2?${params}&signature=${signatureParams(params, 5)}`, {
|
||||||
headers: {
|
headers: {
|
||||||
mid: '1586163263991',
|
mid: '1586163263991',
|
||||||
Referer: 'https://m3ws.kugou.com/share/index.php',
|
Referer: 'https://m3ws.kugou.com/share/index.php',
|
||||||
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
|
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
|
||||||
dfid: '-',
|
dfid: '-',
|
||||||
|
clienttime: '1586163263991',
|
||||||
},
|
},
|
||||||
}).then(data => data.info))
|
}).then(data => data.info))
|
||||||
}
|
}
|
||||||
@ -873,7 +874,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
// 用于新建branch的注释
|
|
||||||
// getList
|
// getList
|
||||||
// getTags
|
// getTags
|
||||||
// getListDetail
|
// getListDetail
|
||||||
Loading…
Reference in New Issue
Block a user