From 6035e242c5280644ef5fcc0c3146b419abdee567 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Mon, 16 Aug 2021 13:26:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtx=E6=BA=90=E7=9A=84=E6=AD=8C?= =?UTF-8?q?=E8=AF=8D=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 4 ++++ src/utils/index.js | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 08e7405..b165033 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -6,3 +6,7 @@ ### 调整 - 为了与搜索、歌单操作栏位置统一,现将我的列表-收藏的列表操作栏由底部挪到顶部 + +### 修复 + +- 修复tx源的歌词无法显示的问题 diff --git a/src/utils/index.js b/src/utils/index.js index acd2f45..5182e0f 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -30,9 +30,7 @@ export const formatPlayTime2 = time => { export const b64DecodeUnicode = str => { // Going backwards: from bytestream, to percent-encoding, to original string. - return decodeURIComponent(window.atob(str).split('').map(function(c) { - return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2) - }).join('')) + return Buffer.from(str, 'base64').toString() } const encodeNames = {