mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
新增重复昵称检测接口 #1469
This commit is contained in:
parent
ce6e29a7ec
commit
0fef46f7d1
@ -1,4 +1,7 @@
|
||||
# 更新日志
|
||||
### 4.5.6 | 2022.02.09
|
||||
- 新增重复昵称检测接口 [#1469](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/1469)
|
||||
|
||||
### 4.5.5 | 2022.02.09
|
||||
- 搜索接口支持搜索声音
|
||||
|
||||
|
@ -356,6 +356,7 @@ banner({ type:0 }).then(res=>{
|
||||
234. 最近播放-专辑
|
||||
235. 最近播放-播客
|
||||
236. 签到进度
|
||||
237. 重复昵称检测
|
||||
|
||||
## 更新日志
|
||||
|
||||
|
@ -252,6 +252,7 @@
|
||||
234. 最近播放-专辑
|
||||
235. 最近播放-播客
|
||||
236. 签到进度
|
||||
237. 重复昵称检测
|
||||
|
||||
|
||||
## 安装
|
||||
|
6
interface.d.ts
vendored
6
interface.d.ts
vendored
@ -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
16
module/nickname_check.js
Normal 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,
|
||||
},
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user