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

Commit

Permalink
修复歌词接口出错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryify committed Apr 24, 2019
1 parent 2fb4c35 commit 0b87e71
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 3.8.1 | 2019.04.24
- 修复歌词接口出错问题

### 3.8.0 | 2019.04.14
- 增加注册,发送验证码,校验验证码接口 via:[https://github.com/Binaryify/NeteaseCloudMusicApi/pull/460](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/460) @[KongValley](https://github.com/KongValley)

Expand Down
7 changes: 5 additions & 2 deletions module/lyric.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// 歌词

module.exports = (query, request) => {
const data={
id:query.id
}
return request(
'POST', `https://music.163.com/weapi/song/lyric?os=osx&id=${query.id}&lv=-1&kv=-1&tv=-1`, {},
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
'POST', `https://music.163.com/weapi/song/lyric?lv=-1&kv=-1&tv=-1`, data,
{crypto: 'linuxapi', cookie: query.cookie, proxy: query.proxy}
)
}
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.8.0",
"version": "3.8.1",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

7 comments on commit 0b87e71

@mlb0315
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

大佬,还是获取不到歌词啊,直接返回404

@Binaryify
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlb0315 404要么你 id 错了,要么你链接错了

@mlb0315
Copy link

@mlb0315 mlb0315 commented on 0b87e71 Apr 25, 2019 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlb0315
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

邮箱发截图给你,帮忙看一下

@xieyezi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一直以来,都很感谢你,一直到我的作品完成,都是用的这个接口,感谢你,请问你有QQ群吗,我很想学习您是如何搭建这个API服务的!

@Binaryify
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mlb0315 你更新到昨天那个版本就行

@Binaryify
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xieyezi 没有 qq 群

Please sign in to comment.