更新音源API (#1352)

* 更新API

---------

Co-authored-by: lyswhut <lyswhut@qq.com>
This commit is contained in:
Folltoshe
2023-04-29 15:09:17 +08:00
committed by GitHub
co-authored by lyswhut
parent 200ca1eeda
commit 908815def3
36 changed files with 1422 additions and 207 deletions
+2 -12
View File
@@ -1,9 +1,6 @@
// import '../../polyfill/array.find'
import { httpFetch } from '../../request'
import { formatPlayTime, sizeFormate } from '../../index'
// import { debug } from '../../utils/env'
// import { formatSinger } from './util'
import { formatSingerName } from '../utils'
export default {
limit: 50,
@@ -52,13 +49,6 @@ export default {
return body.req.data
})
},
getSinger(singers) {
let arr = []
singers.forEach(singer => {
arr.push(singer.name)
})
return arr.join('、')
},
handleResult(rawList) {
// console.log(rawList)
const list = []
@@ -104,7 +94,7 @@ export default {
albumId = item.album.mid
}
list.push({
singer: this.getSinger(item.singer),
singer: formatSingerName(item.singer, 'name'),
name: item.name,
albumName,
albumId,