From d37906ec142c8d69fcaa9c2419aaae4d4835e958 Mon Sep 17 00:00:00 2001 From: binaryify Date: Wed, 3 Jul 2019 22:33:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=AC=E6=AD=8C=E6=89=93?= =?UTF-8?q?=E5=8D=A1=E6=8E=A5=E5=8F=A3=20`/scrobble`=20=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20#522?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.MD | 3 +++ docs/README.md | 4 ++-- module/scrobble.js | 3 ++- package.json | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index a614558..a02eabd 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,7 @@ # 更新日志 +### 3.18.2 | 2019.07.03 +- 修复听歌打卡接口 `/scrobble` 失效问题 + ### 3.18.1 | 2019.06.30 - 评论接口增加 `before` 参数以获取超过5000条评论数据 [#521](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/521) diff --git a/docs/README.md b/docs/README.md index 1204e96..1ea9365 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1596,11 +1596,11 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具 **必选参数 :** `id`: 歌曲 id, `sourceid`: 歌单或专辑 id -**可选参数 :** `time`: 歌曲播放时间 +**可选参数 :** `time`: 歌曲播放时间,单位为秒 **接口地址 :** `/scrobble` -**调用例子 :** `/scrobble?id=482369360&&sourceid=35571977` +**调用例子 :** `/scrobble?id=518066366&sourceid=36780169&time=291` ### 热门歌手 diff --git a/module/scrobble.js b/module/scrobble.js index 9f00a5d..8d7176c 100644 --- a/module/scrobble.js +++ b/module/scrobble.js @@ -7,7 +7,7 @@ module.exports = (query, request) => { json: { download: 0, end: 'playend', - id: query.songid, + id: query.id, sourceId: query.sourceid, time: query.time, type: 'song', @@ -15,6 +15,7 @@ module.exports = (query, request) => { } }]) } + return request( 'POST', `https://music.163.com/weapi/feedback/weblog`, data, {crypto: 'weapi', cookie: query.cookie, proxy: query.proxy} diff --git a/package.json b/package.json index b68ccd1..f39158a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.18.1", + "version": "3.18.2", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js", -- GitLab