From 492e3d8965f45eeec244581183c5a09f587cc542 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 30 Sep 2019 20:20:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E9=85=B7=E7=8B=97=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E9=9F=B3=E8=B4=A8=E6=92=AD=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/renderer/components/core/Player.vue | 2 +- src/renderer/components/material/DownloadModal.vue | 2 +- src/renderer/store/modules/songList.js | 4 +++- src/renderer/utils/music/utils.js | 2 +- src/renderer/views/Leaderboard.vue | 2 +- src/renderer/views/SongList.vue | 4 ++-- 7 files changed, 10 insertions(+), 7 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index cd08086a..f170b0bd 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -7,3 +7,4 @@ - 修正火影皮肤名字 - 修复当试听列表为空时,无法切到其他界面的Bug - 修复百度源搜索结果为空时的接口处理Bug +- 恢复酷狗其他音质播放 diff --git a/src/renderer/components/core/Player.vue b/src/renderer/components/core/Player.vue index 807631b2..9b15f199 100644 --- a/src/renderer/components/core/Player.vue +++ b/src/renderer/components/core/Player.vue @@ -367,7 +367,7 @@ export default { getPlayType(highQuality, songInfo) { switch (songInfo.source) { case 'wy': - case 'kg': + // case 'kg': return '128k' } let type = songInfo._types['192k'] ? '192k' : '128k' diff --git a/src/renderer/components/material/DownloadModal.vue b/src/renderer/components/material/DownloadModal.vue index ff64047d..6dac4a39 100644 --- a/src/renderer/components/material/DownloadModal.vue +++ b/src/renderer/components/material/DownloadModal.vue @@ -52,7 +52,7 @@ export default { checkSource(type) { switch (this.musicInfo.source) { case 'wy': - case 'kg': + // case 'kg': return type == '128k' default: diff --git a/src/renderer/store/modules/songList.js b/src/renderer/store/modules/songList.js index 6f54fba6..af64d54c 100644 --- a/src/renderer/store/modules/songList.js +++ b/src/renderer/store/modules/songList.js @@ -20,6 +20,7 @@ const state = { }, listDetail: { list: [], + desc: null, total: 0, page: 1, limit: 30, @@ -83,12 +84,13 @@ const mutations = { state.list.page = page state.list.key = key }, - setListDetail(state, { result, key, page }) { + setListDetail(state, { result, key, page, desc }) { state.listDetail.list = result.list state.listDetail.total = result.total state.listDetail.limit = result.limit state.listDetail.page = page state.listDetail.key = key + state.listDetail.desc = result.desc }, setVisibleListDetail(state, bool) { state.isVisibleListDetail = bool diff --git a/src/renderer/utils/music/utils.js b/src/renderer/utils/music/utils.js index 9783dd64..2b43f645 100644 --- a/src/renderer/utils/music/utils.js +++ b/src/renderer/utils/music/utils.js @@ -7,7 +7,7 @@ const types = ['flac', 'ape', '320k', '192k', '128k'] export const getMusicType = (info, type) => { switch (window.globalObj.apiSource) { - case 'kg': + // case 'kg': case 'wy': return '128k' } diff --git a/src/renderer/views/Leaderboard.vue b/src/renderer/views/Leaderboard.vue index 3a4d5270..3789a9e2 100644 --- a/src/renderer/views/Leaderboard.vue +++ b/src/renderer/views/Leaderboard.vue @@ -117,7 +117,7 @@ export default { }, handleAddDownloadMultiple(type) { switch (this.source) { - case 'kg': + // case 'kg': case 'wy': type = '128k' } diff --git a/src/renderer/views/SongList.vue b/src/renderer/views/SongList.vue index b56c8ec5..cd776665 100644 --- a/src/renderer/views/SongList.vue +++ b/src/renderer/views/SongList.vue @@ -8,7 +8,7 @@ span(:class="$style.playNum" v-if="selectListInfo.play_count") {{selectListInfo.play_count}} div(:class="$style.songListHeaderMiddle") h3(:title="selectListInfo.name") {{selectListInfo.name}} - p(:title="selectListInfo.desc") {{selectListInfo.desc}} + p(:title="selectListInfo.desc") {{listDetail.desc || selectListInfo.desc}} div(:class="$style.songListHeaderRight") material-btn(:class="$style.closeDetailButton" @click="hideListDetail") 返回 material-song-list(v-model="selectdData" @action="handleSongListAction" :source="source" :page="listDetail.page" :limit="listDetail.limit" :total="listDetail.total" :list="listDetail.list") @@ -191,7 +191,7 @@ export default { }, handleAddDownloadMultiple(type) { switch (this.source) { - case 'kg': + // case 'kg': case 'wy': type = '128k' }