存档:TS 重构前基线(lx 聚合源 = isolated-vm 加载器,签名方案已移除)
This commit is contained in:
commit
f289df4cd7
124 files changed
+14110
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import leaderboard from './leaderboard.js'
|
||||
import { apis } from '../api-source.js'
|
||||
import getLyric from './lyric.js'
|
||||
import getMusicInfo from './musicInfo.js'
|
||||
import musicSearch from './musicSearch.js'
|
||||
import songList from './songList.js'
|
||||
import hotSearch from './hotSearch.js'
|
||||
import comment from './comment.js'
|
||||
// import tipSearch from './tipSearch.js'
|
||||
|
||||
const wy = {
|
||||
// tipSearch,
|
||||
leaderboard,
|
||||
musicSearch,
|
||||
songList,
|
||||
hotSearch,
|
||||
comment,
|
||||
getMusicUrl(songInfo, type) {
|
||||
return apis('wy').getMusicUrl(songInfo, type)
|
||||
},
|
||||
getLyric(songInfo) {
|
||||
return getLyric(songInfo.songmid)
|
||||
},
|
||||
getPic(songInfo) {
|
||||
const requestObj = getMusicInfo(songInfo.songmid)
|
||||
return requestObj.promise.then(info => info.al.picUrl)
|
||||
},
|
||||
getMusicDetailPageUrl(songInfo) {
|
||||
return `https://music.163.com/#/song?id=${songInfo.songmid}`
|
||||
},
|
||||
}
|
||||
|
||||
export default wy
|
||||
Reference in new issue
Block a user