新增 检测手机号码是否已注册 和 初始化昵称 接口 #540

This commit is contained in:
binaryify 2019-07-24 16:15:22 +08:00
parent 4223c07a70
commit 74650ea7b9
6 changed files with 29 additions and 4 deletions

View File

@ -1,4 +1,7 @@
# 更新日志
### 3.19.0 | 2019.07.24
- 新增`检测手机号码是否已注册`和`初始化昵称`接口[#540](https://github.com/Binaryify/NeteaseCloudMusicApi/pull/540)
### 3.18.6 | 2019.07.15
- 修复注册异常的问题 [#532](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/532)

View File

@ -144,6 +144,8 @@
121. 专辑动态信息
122. 热搜列表(详细)
123. 更换绑定手机
124. 检测手机号码是否已注册
125. 初始化昵称
## 环境要求

View File

@ -139,6 +139,8 @@
121. 专辑动态信息
122. 热搜列表(详细)
123. 更换绑定手机
124. 检测手机号码是否已注册
125. 初始化昵称
## 安装
@ -347,6 +349,24 @@ Cookies
**调用例子 :** `/register/cellphone?phone=13xxx&password=xxxxx&captcha=1234&nickname=binary1345`
### 检测手机号码是否已注册
说明 : 调用此接口 ,可检测手机号码是否已注册
**必选参数 :**
`phone` : 手机号码
**接口地址 :** `/cellphone/existence/check`
**调用例子 :** `/cellphone/existence/check?phone=13xxx`
### 初始化昵称
说明 : 刚注册的账号(需登录),调用此接口 ,可初始化昵称
**必选参数 :**
`nickname` : 昵称
**接口地址 :** `/activate/initProfile`
**调用例子 :** `/activate/initProfile?nickname=testUser2019`
### 更换绑定手机
说明 : 调用此接口 ,可更换绑定手机(流程:先发送验证码到原手机号码,再发送验证码到新手机号码然后再调用此接口)

View File

@ -1,4 +1,4 @@
// 检测是否注册
// 初始化名字
module.exports = (query, request) => {
const data = {

View File

@ -1,8 +1,8 @@
// 检测是否注册
// 检测手机号码是否注册
module.exports = (query, request) => {
const data = {
cellphone: query.cellphone
cellphone: query.phone
};
return request(
"POST",

View File

@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.18.6",
"version": "3.19.0",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",