From f7ce068260bc2c7ba88f5b75d8a1b063f9008d3c Mon Sep 17 00:00:00 2001 From: qier222 <68148142+qier222@users.noreply.github.com> Date: Wed, 21 Oct 2020 15:57:24 +0800 Subject: [PATCH] fix: replace http with https in mp3 url --- src/store/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/actions.js b/src/store/actions.js index 047886f..a109d32 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -33,7 +33,7 @@ export default { if (isLoggedIn) { getMP3(track.id).then(data => { - commitMP3(data.data[0].url); + commitMP3(data.data[0].url.replace(/^http:/, "https:")); }); } else { commitMP3(`https://music.163.com/song/media/outer/url?id=${track.id}`);