Scrobble song

This commit is contained in:
trazyn 2019-01-17 17:21:46 +08:00
parent 09b66934b6
commit 60642de76c

22
module/scrobble.js Normal file
View File

@ -0,0 +1,22 @@
// 听歌打卡
module.exports = (query, request) => {
const data = {
logs: JSON.stringify([{
action: 'play',
json: {
download: 0,
end: 'playend',
id: query.songid,
sourceId: query.sourceid,
time: query.time,
type: 'song',
wifi: 0,
}
}])
}
return request(
'POST', `https://music.163.com/weapi/feedback/weblog`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
}