新增重复昵称检测接口 #1469

This commit is contained in:
binaryify 2022-02-09 22:35:30 +08:00
parent ce6e29a7ec
commit 0fef46f7d1
5 changed files with 27 additions and 0 deletions

View File

@ -1,4 +1,7 @@
# 更新日志
### 4.5.6 | 2022.02.09
- 新增重复昵称检测接口 [#1469](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1469)
### 4.5.5 | 2022.02.09
- 搜索接口支持搜索声音

View File

@ -356,6 +356,7 @@ banner({ type:0 }).then(res=>{
234. 最近播放-专辑
235. 最近播放-播客
236. 签到进度
237. 重复昵称检测
## 更新日志

View File

@ -252,6 +252,7 @@
234. 最近播放-专辑
235. 最近播放-播客
236. 签到进度
237. 重复昵称检测
## 安装

6
interface.d.ts vendored
View File

@ -1601,3 +1601,9 @@ export function signin_progress(
moduleId?: string
} & RequestBaseConfig,
): Promise<Response>
export function nickname_check(
params: {
nickname: string
} & RequestBaseConfig,
): Promise<Response>

16
module/nickname_check.js Normal file
View File

@ -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,
},
)
}