修复wy源音质获取问题

pull/1050/head
lyswhut 2022-07-22 14:29:57 +08:00
parent 2a716e4d5a
commit 1c58a64847
3 changed files with 24 additions and 36 deletions

View File

@ -30,23 +30,19 @@ export default {
size, size,
} }
case 320000: case 320000:
if (item.h) { size = item.h ? sizeFormate(item.h.size) : null
size = sizeFormate(item.h.size)
types.push({ type: '320k', size }) types.push({ type: '320k', size })
_types['320k'] = { _types['320k'] = {
size, size,
} }
}
case 192000: case 192000:
case 128000: case 128000:
if (item.l) { size = item.l ? sizeFormate(item.l.size) : null
size = sizeFormate(item.l.size)
types.push({ type: '128k', size }) types.push({ type: '128k', size })
_types['128k'] = { _types['128k'] = {
size, size,
} }
} }
}
types.reverse() types.reverse()

View File

@ -41,23 +41,19 @@ export default {
size, size,
} }
case 320000: case 320000:
if (item.h) { size = item.h ? sizeFormate(item.h.size) : null
size = sizeFormate(item.h.size)
types.push({ type: '320k', size }) types.push({ type: '320k', size })
_types['320k'] = { _types['320k'] = {
size, size,
} }
}
case 192000: case 192000:
case 128000: case 128000:
if (item.l) { size = item.l ? sizeFormate(item.l.size) : null
size = sizeFormate(item.l.size)
types.push({ type: '128k', size }) types.push({ type: '128k', size })
_types['128k'] = { _types['128k'] = {
size, size,
} }
} }
}
types.reverse() types.reverse()

View File

@ -152,23 +152,19 @@ export default {
size, size,
} }
case 320000: case 320000:
if (item.h) { size = item.h ? sizeFormate(item.h.size) : null
size = sizeFormate(item.h.size)
types.push({ type: '320k', size }) types.push({ type: '320k', size })
_types['320k'] = { _types['320k'] = {
size, size,
} }
}
case 192000: case 192000:
case 128000: case 128000:
if (item.l) { size = item.l ? sizeFormate(item.l.size) : null
size = sizeFormate(item.l.size)
types.push({ type: '128k', size }) types.push({ type: '128k', size })
_types['128k'] = { _types['128k'] = {
size, size,
} }
} }
}
types.reverse() types.reverse()