移除虾米源,允许播放除了搜索列表以外的所有歌曲
This commit is contained in:
@@ -11,7 +11,6 @@ module.exports = [
|
||||
tx: ['128k'],
|
||||
wy: ['128k'],
|
||||
mg: ['128k'],
|
||||
xm: ['128k'],
|
||||
// bd: ['128k'],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
item.name = trimStr(item.name)
|
||||
item.lowerCaseName = String(item.name).toLowerCase()
|
||||
item.lowerCaseAlbumName = String(item.albumName).toLowerCase()
|
||||
console.log(lowerCaseName, item.lowerCaseName)
|
||||
// console.log(lowerCaseName, item.lowerCaseName)
|
||||
if (
|
||||
(
|
||||
item.sortedSinger === sortedSinger &&
|
||||
|
||||
@@ -1,39 +1,54 @@
|
||||
import { apis } from '../api-source'
|
||||
import leaderboard from './leaderboard'
|
||||
import songList from './songList'
|
||||
import musicSearch from './musicSearch'
|
||||
// import { apis } from '../api-source'
|
||||
// import leaderboard from './leaderboard'
|
||||
// import songList from './songList'
|
||||
// import musicSearch from './musicSearch'
|
||||
// import pic from './pic'
|
||||
import lyric from './lyric'
|
||||
import hotSearch from './hotSearch'
|
||||
import comment from './comment'
|
||||
import musicInfo from './musicInfo'
|
||||
import { closeVerifyModal } from './util'
|
||||
// import lyric from './lyric'
|
||||
// import hotSearch from './hotSearch'
|
||||
// import comment from './comment'
|
||||
// import musicInfo from './musicInfo'
|
||||
// import { closeVerifyModal } from './util'
|
||||
|
||||
const xm = {
|
||||
songList,
|
||||
musicSearch,
|
||||
leaderboard,
|
||||
hotSearch,
|
||||
closeVerifyModal,
|
||||
comment,
|
||||
// songList,
|
||||
// musicSearch,
|
||||
// leaderboard,
|
||||
// hotSearch,
|
||||
// closeVerifyModal,
|
||||
comment: {
|
||||
getComment() {
|
||||
return Promise.reject(new Error('fail'))
|
||||
},
|
||||
getHotComment() {
|
||||
return Promise.reject(new Error('fail'))
|
||||
},
|
||||
},
|
||||
getMusicUrl(songInfo, type) {
|
||||
return apis('xm').getMusicUrl(songInfo, type)
|
||||
return {
|
||||
promise: Promise.reject(new Error('fail')),
|
||||
}
|
||||
// return apis('xm').getMusicUrl(songInfo, type)
|
||||
},
|
||||
getLyric(songInfo) {
|
||||
return lyric.getLyric(songInfo)
|
||||
return {
|
||||
promise: Promise.reject(new Error('fail')),
|
||||
}
|
||||
// return lyric.getLyric(songInfo)
|
||||
},
|
||||
getPic(songInfo) {
|
||||
return Promise.reject(new Error('fail'))
|
||||
return {
|
||||
promise: Promise.reject(new Error('fail')),
|
||||
}
|
||||
// return pic.getPic(songInfo)
|
||||
},
|
||||
getMusicDetailPageUrl(songInfo) {
|
||||
if (songInfo.songStringId) return `https://www.xiami.com/song/${songInfo.songStringId}`
|
||||
// getMusicDetailPageUrl(songInfo) {
|
||||
// if (songInfo.songStringId) return `https://www.xiami.com/song/${songInfo.songStringId}`
|
||||
|
||||
musicInfo.getMusicInfo(songInfo).then(({ data }) => {
|
||||
songInfo.songStringId = data.songStringId
|
||||
})
|
||||
return `https://www.xiami.com/song/${songInfo.songmid}`
|
||||
},
|
||||
// musicInfo.getMusicInfo(songInfo).then(({ data }) => {
|
||||
// songInfo.songStringId = data.songStringId
|
||||
// })
|
||||
// return `https://www.xiami.com/song/${songInfo.songmid}`
|
||||
// },
|
||||
// init() {
|
||||
// getToken()
|
||||
// },
|
||||
|
||||
@@ -68,7 +68,7 @@ export const xmRequest = (path, params = '') => {
|
||||
isCancelled: false,
|
||||
cancelHttp() {
|
||||
if (!this.isInited) this.isCancelled = true
|
||||
this.requestObj.cancelHttp()
|
||||
this.requestObj && this.requestObj.cancelHttp()
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user