Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
新增 检测手机号码是否已注册 和 初始化昵称 接口 #540
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryify committed Jul 24, 2019
1 parent ec75169 commit 05d1905
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 2 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@
121. 专辑动态信息
122. 热搜列表(详细)
123. 更换绑定手机
124. 检测手机号码是否已注册
125. 初始化昵称


## 环境要求
Expand Down
20 changes: 20 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@
121. 专辑动态信息
122. 热搜列表(详细)
123. 更换绑定手机
124. 检测手机号码是否已注册
125. 初始化昵称

## 安装

Expand Down Expand Up @@ -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`

### 更换绑定手机
说明 : 调用此接口 ,可更换绑定手机(流程:先发送验证码到原手机号码,再发送验证码到新手机号码然后再调用此接口)

Expand Down
2 changes: 1 addition & 1 deletion module/activate_init_profile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 检测是否注册
// 初始化名字

module.exports = (query, request) => {
const data = {
Expand Down
4 changes: 2 additions & 2 deletions module/cellphone_existence_check.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// 检测是否注册
// 检测手机号码是否已注册

module.exports = (query, request) => {
const data = {
cellphone: query.cellphone
cellphone: query.phone
};
return request(
"POST",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "NeteaseCloudMusicApi",
"version": "3.18.6",
"version": "3.19.0",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
Expand Down

0 comments on commit 05d1905

Please sign in to comment.