diff --git a/CHANGELOG.MD b/CHANGELOG.MD index a61455852a89e68e8146ba507cb244eb1e3cef8d..a02eabd05751111b18514f9360d2f57757360e42 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 1204e96bd164657902df7f69284674a89d6ac40b..1ea93658b192d1073554654c99a372e2f114cd48 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 9f00a5da0c5b2610b69afe8d07338cc3655d4106..8d7176c8c75637cb2e00fbf26f5cbc1120843548 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 b68ccd1f50c34c6ed36178b6f0157a93631ea387..f39158add2fa36ff62b874accacc177fc2276372 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",