diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 37f1d0d..37654ae 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -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) diff --git a/README.MD b/README.MD index 999d243..da0953e 100644 --- a/README.MD +++ b/README.MD @@ -144,6 +144,8 @@ 121. 专辑动态信息 122. 热搜列表(详细) 123. 更换绑定手机 +124. 检测手机号码是否已注册 +125. 初始化昵称 ## 环境要求 diff --git a/docs/README.md b/docs/README.md index 1ea9365..a76569c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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` + ### 更换绑定手机 说明 : 调用此接口 ,可更换绑定手机(流程:先发送验证码到原手机号码,再发送验证码到新手机号码然后再调用此接口) diff --git a/module/activate_init_profile.js b/module/activate_init_profile.js index cb67957..878bc9c 100644 --- a/module/activate_init_profile.js +++ b/module/activate_init_profile.js @@ -1,4 +1,4 @@ -// 检测是否注册 +// 初始化名字 module.exports = (query, request) => { const data = { diff --git a/module/cellphone_existence_check.js b/module/cellphone_existence_check.js index 9e51599..47b5a47 100644 --- a/module/cellphone_existence_check.js +++ b/module/cellphone_existence_check.js @@ -1,8 +1,8 @@ -// 检测是否注册 +// 检测手机号码是否已注册 module.exports = (query, request) => { const data = { - cellphone: query.cellphone + cellphone: query.phone }; return request( "POST", diff --git a/package.json b/package.json index 9d8fd9c..33e6175 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NeteaseCloudMusicApi", - "version": "3.18.6", + "version": "3.19.0", "description": "网易云音乐 NodeJS 版 API", "scripts": { "start": "node app.js",