修复网易云128k直接试听

This commit is contained in:
lyswhut
2019-10-16 00:40:36 +08:00
parent a104ce688e
commit 9dc9d3b1b7
13 changed files with 110 additions and 61 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
import leaderboard from './leaderboard'
import api_source from '../api-source'
import getLyric from './lyric'
import getMusicInfo from './musicInfo'
const wy = {
leaderboard,
@@ -7,10 +9,10 @@ const wy = {
return api_source('wy').getMusicUrl(songInfo, type)
},
getLyric(songInfo) {
return api_source('wy').getLyric(songInfo)
return getLyric(songInfo.songmid)
},
getPic(songInfo) {
return api_source('wy').getPic(songInfo)
return getMusicInfo(songInfo.songmid).then(info => info.al.picUrl)
},
}