mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
新增云盘歌曲信息匹配纠正接口 #1212
This commit is contained in:
parent
bf8f98d726
commit
05084c7f81
@ -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)
|
||||
|
||||
|
@ -316,6 +316,8 @@ banner({ type:0 }).then(res=>{
|
||||
202. 歌单详情动态
|
||||
203. 绑定手机
|
||||
204. 一起听状态
|
||||
205. 用户历史评论
|
||||
206. 云盘歌曲信息匹配纠正
|
||||
|
||||
## 更新日志
|
||||
|
||||
|
@ -221,6 +221,7 @@
|
||||
203. 绑定手机
|
||||
204. 一起听状态
|
||||
205. 用户历史评论
|
||||
206. 云盘歌曲信息匹配纠正
|
||||
|
||||
## 安装
|
||||
|
||||
@ -826,7 +827,8 @@ tags: 歌单标签
|
||||
|
||||
**必选参数 :** `uid` : 用户 id
|
||||
|
||||
**可选参数 :**
|
||||
**可选参数 :**
|
||||
|
||||
`limit` : 返回数量 , 默认为 10
|
||||
|
||||
`time`: 上一条数据的time,第一页不需要传,默认为0
|
||||
@ -2631,6 +2633,20 @@ type : 地区
|
||||
|
||||
**调用例子 :** `/cloud`
|
||||
|
||||
### 云盘歌曲信息匹配纠正
|
||||
说明 : 登录后调用此接口,可对云盘歌曲信息匹配纠正
|
||||
|
||||
**必选参数 :**
|
||||
`uid`: 用户id
|
||||
|
||||
`sid`: 云盘的歌曲id
|
||||
|
||||
`asid`: 要匹配的歌曲id
|
||||
|
||||
**接口地址 :** `/cloud/match`
|
||||
|
||||
**调用例子 :** `/cloud/match?uid=32953014&asid=0&sid=1321856840`
|
||||
|
||||
### 电台banner
|
||||
说明 : 调用此接口,可获取电台banner
|
||||
|
||||
|
8
interface.d.ts
vendored
8
interface.d.ts
vendored
@ -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
module/cloud_match.js
Normal file
20
module/cloud_match.js
Normal file
@ -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,
|
||||
},
|
||||
)
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "4.0.10",
|
||||
"version": "4.0.11",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
Loading…
x
Reference in New Issue
Block a user