forked from um/web
Add Analytics
Fix an error statement
This commit is contained in:
parent
0b0b19163b
commit
23ff9cdec1
@ -4,6 +4,11 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
|
<script>let _paq = window._paq || [];
|
||||||
|
_paq.push(['trackPageView'], ['enableLinkTracking'], ['setSiteId', '2'],
|
||||||
|
['setTrackerUrl', 'https://stats.ixarea.com/ixarea-stats/report']);
|
||||||
|
</script>
|
||||||
|
<script async src="https://stats.ixarea.com/ixarea-stats.js"></script>
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<title>音乐解锁 - By IXarea</title>
|
<title>音乐解锁 - By IXarea</title>
|
||||||
<meta content="音乐,解锁,ncm,qmc,qmc0,qmc3,qmcflac,qq音乐,网易云音乐,加密" name="keywords"/>
|
<meta content="音乐,解锁,ncm,qmc,qmc0,qmc3,qmcflac,qq音乐,网易云音乐,加密" name="keywords"/>
|
||||||
|
13
src/App.vue
13
src/App.vue
@ -140,11 +140,21 @@
|
|||||||
title: '解锁成功',
|
title: '解锁成功',
|
||||||
message: '成功解锁 ' + data.title
|
message: '成功解锁 ' + data.title
|
||||||
});
|
});
|
||||||
|
let _rp_data = {
|
||||||
|
original: data.original,
|
||||||
|
title: data.title,
|
||||||
|
album: data.album,
|
||||||
|
artist: data.artist,
|
||||||
|
mime: data.mime
|
||||||
|
};
|
||||||
|
console.log(data);
|
||||||
|
_paq.push(["trackEvent", "Unlock", "Success", JSON.stringify(_rp_data)]);
|
||||||
} else {
|
} else {
|
||||||
this.$notify.error({
|
this.$notify.error({
|
||||||
title: '错误',
|
title: '错误',
|
||||||
message: '不支持此文件类型'
|
message: '解析此文件时出现问题'
|
||||||
});
|
});
|
||||||
|
_paq.push(["trackEvent", "Unlock", "Error", file.name]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -190,7 +200,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@ -172,13 +172,12 @@ async function Decrypt(file) {
|
|||||||
const musicUrl = URL.createObjectURL(musicData);
|
const musicUrl = URL.createObjectURL(musicData);
|
||||||
const filename = artists.join(" & ") + " - " + musicMeta.musicName + "." + musicMeta.format;
|
const filename = artists.join(" & ") + " - " + musicMeta.musicName + "." + musicMeta.format;
|
||||||
return {
|
return {
|
||||||
meta: musicMeta,
|
|
||||||
file: musicUrl,
|
|
||||||
picture: musicMeta.albumPic,
|
|
||||||
title: musicMeta.musicName,
|
|
||||||
album: musicMeta.album,
|
|
||||||
artist: artists.join(" & "),
|
|
||||||
filename: filename,
|
filename: filename,
|
||||||
|
title: musicMeta.musicName,
|
||||||
|
artist: artists.join(" & "),
|
||||||
|
album: musicMeta.album,
|
||||||
|
picture: musicMeta.albumPic,
|
||||||
|
file: musicUrl,
|
||||||
mime: mime
|
mime: mime
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -78,8 +78,8 @@ async function Decrypt(file) {
|
|||||||
title: title,
|
title: title,
|
||||||
artist: artist,
|
artist: artist,
|
||||||
album: tag.common.album,
|
album: tag.common.album,
|
||||||
file: musicUrl,
|
|
||||||
picture: pic_url,
|
picture: pic_url,
|
||||||
|
file: musicUrl,
|
||||||
mime: mime
|
mime: mime
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user