mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
24 lines
579 B
JavaScript
24 lines
579 B
JavaScript
// 听歌打卡
|
|
|
|
module.exports = (query, request) => {
|
|
const data = {
|
|
logs: JSON.stringify([{
|
|
action: 'play',
|
|
json: {
|
|
download: 0,
|
|
end: 'playend',
|
|
id: query.id,
|
|
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}
|
|
)
|
|
}
|