mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-05 15:08:56 +08:00
Scrobble song
This commit is contained in:
parent
09b66934b6
commit
60642de76c
22
module/scrobble.js
Normal file
22
module/scrobble.js
Normal 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}
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user