fix: replace http with https in mp3 url

This commit is contained in:
qier222 2020-10-21 15:57:24 +08:00
parent 81d65c2885
commit f7ce068260

View File

@ -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}`);