Skip to content

Commit

Permalink
新增重复昵称检测接口 Binaryify#1469
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Feb 9, 2022
1 parent ce6e29a commit 0fef46f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 更新日志
### 4.5.6 | 2022.02.09
- 新增重复昵称检测接口 [#1469](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1469)

### 4.5.5 | 2022.02.09
- 搜索接口支持搜索声音

Expand Down
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ banner({ type:0 }).then(res=>{
234. 最近播放-专辑
235. 最近播放-播客
236. 签到进度
237. 重复昵称检测

## 更新日志

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@
234. 最近播放-专辑
235. 最近播放-播客
236. 签到进度
237. 重复昵称检测


## 安装
Expand Down
6 changes: 6 additions & 0 deletions interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1601,3 +1601,9 @@ export function signin_progress(
moduleId?: string
} & RequestBaseConfig,
): Promise<Response>

export function nickname_check(
params: {
nickname: string
} & RequestBaseConfig,
): Promise<Response>
16 changes: 16 additions & 0 deletions module/nickname_check.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = (query, request) => {
const data = {
nickname: query.nickname,
}
return request(
'POST',
`https://music.163.com/api/nickname/duplicated`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}

0 comments on commit 0fef46f

Please sign in to comment.