From 60642de76c7f58468f16f062d3a72117b523f069 Mon Sep 17 00:00:00 2001 From: trazyn Date: Thu, 17 Jan 2019 17:21:46 +0800 Subject: [PATCH] Scrobble song --- module/scrobble.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 module/scrobble.js diff --git a/module/scrobble.js b/module/scrobble.js new file mode 100644 index 0000000..9f00a5d --- /dev/null +++ b/module/scrobble.js @@ -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} + ) +}