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

Commit

Permalink
新增云盘歌曲信息匹配纠正接口 #1212
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Apr 26, 2021
1 parent bf8f98d commit 05084c7
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 4.0.11 | 2021.4.26
- 新增云盘歌曲信息匹配纠正接口 [#1212](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1212)

### 4.0.10 | 2021.4.09
- 新增用户历史评论接口 [#1197](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1197)

Expand Down
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ banner({ type:0 }).then(res=>{
202. 歌单详情动态
203. 绑定手机
204. 一起听状态
205. 用户历史评论
206. 云盘歌曲信息匹配纠正

## 更新日志

Expand Down
18 changes: 17 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
203. 绑定手机
204. 一起听状态
205. 用户历史评论
206. 云盘歌曲信息匹配纠正

## 安装

Expand Down Expand Up @@ -826,7 +827,8 @@ tags: 歌单标签

**必选参数 :** `uid` : 用户 id

**可选参数 :**
**可选参数 :**

`limit` : 返回数量 , 默认为 10

`time`: 上一条数据的time,第一页不需要传,默认为0
Expand Down Expand Up @@ -2631,6 +2633,20 @@ type : 地区

**调用例子 :** `/cloud`

### 云盘歌曲信息匹配纠正
说明 : 登录后调用此接口,可对云盘歌曲信息匹配纠正

**必选参数 :**
`uid`: 用户id

`sid`: 云盘的歌曲id

`asid`: 要匹配的歌曲id

**接口地址 :** `/cloud/match`

**调用例子 :** `/cloud/match?uid=32953014&asid=0&sid=1321856840`

### 电台banner
说明 : 调用此接口,可获取电台banner

Expand Down
8 changes: 8 additions & 0 deletions interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1417,3 +1417,11 @@ export function user_comment_history(
time?: number | string
} & RequestBaseConfig,
): Promise<Response>

export function cloud_match(
params: {
uid: number | string
sid: number | string
asid: number | string
} & RequestBaseConfig,
): Promise<Response>
20 changes: 20 additions & 0 deletions module/cloud_match.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = (query, request) => {
query.cookie.os = 'ios'
query.cookie.appver = '8.1.20'
const data = {
userId: query.uid,
songId: query.sid,
adjustSongId: query.asid,
}
return request(
'POST',
`https://music.163.com/api/cloud/user/song/match`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}
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": "4.0.10",
"version": "4.0.11",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

2 comments on commit 05084c7

@vercel
Copy link

@vercel vercel bot commented on 05084c7 Apr 26, 2021

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 05084c7 Apr 26, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

netease-cloud-music-api – ./docs

neteasecloudmusicapi.vercel.app
netease-cloud-music-api-git-master-binaryify.vercel.app

Please sign in to comment.