Skip to content

Commit

Permalink
feat: 网易云母带搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
ikun0014 committed Oct 5, 2024
1 parent b471a10 commit d582f2d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/musicSdk/tx/musicSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/utils/musicSdk/wy/musicDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
4 changes: 4 additions & 0 deletions src/utils/musicSdk/wy/musicSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down
4 changes: 4 additions & 0 deletions src/utils/musicSdk/wy/songList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down

0 comments on commit d582f2d

Please sign in to comment.