Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
修复听歌打卡接口 /scrobble 失效问题 #522
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Jul 3, 2019
1 parent ec14001 commit d37906e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

### 热门歌手

Expand Down
3 changes: 2 additions & 1 deletion module/scrobble.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ module.exports = (query, request) => {
json: {
download: 0,
end: 'playend',
id: query.songid,
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}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.18.1",
"version": "3.18.2",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit d37906e

Please sign in to comment.