feat: 网易云母带搜索

This commit is contained in:
ikun 2024-10-05 12:26:59 +08:00
parent b471a10e2c
commit d582f2d3e6
No known key found for this signature in database
GPG Key ID: 24A57561C4002CB4
4 changed files with 14 additions and 2 deletions

View File

@ -25,12 +25,12 @@ export default {
os_ver: '12',
phonetype: '0',
devicelevel: '31',
tmeAppID: 'qqmusiclight',
tmeAppID: 'qqmusic',
nettype: 'NETWORK_WIFI',
},
req: {
module: 'music.search.SearchCgiService',
method: 'DoSearchForQQMusicLite',
method: 'DoSearchForQQMusicDesktop',
param: {
query: str,
search_type: 0,

View File

@ -22,6 +22,10 @@ export default {
if (privilege.id !== item.id) privilege = privileges.find(p => p.id === item.id)
if (!privilege) return
if (privilege.chargeInfoList.length > 4 && privilege.chargeInfoList[4].rate == 1999000 && privilege.chargeInfoList[4].chargeType == 1) {
types.push({ type: 'master' })
_types.master = {}
}
if (privilege.maxBrLevel == 'hires') {
size = item.hr ? sizeFormate(item.hr.size) : null
types.push({ type: 'flac24bit', size })

View File

@ -34,6 +34,10 @@ export default {
const _types = {}
let size
if (item.privilege.chargeInfoList.length > 4 && item.privilege.chargeInfoList[4].rate == 1999000 && item.privilege.chargeInfoList[4].chargeType == 1) {
types.push({ type: 'master' })
_types.master = {}
}
if (item.privilege.maxBrLevel == 'hires') {
size = item.hr ? sizeFormate(item.hr.size) : null
types.push({ type: 'flac24bit', size })

View File

@ -137,6 +137,10 @@ export default {
if (privilege.id !== item.id) privilege = privileges.find(p => p.id === item.id)
if (!privilege) return
if (privilege.chargeInfoList.length > 4 && privilege.chargeInfoList[4].rate == 1999000 && privilege.chargeInfoList[4].chargeType == 1) {
types.push({ type: 'master' })
_types.master = {}
}
if (privilege.maxBrLevel == 'hires') {
size = item.hr ? sizeFormate(item.hr.size) : null
types.push({ type: 'flac24bit', size })