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

Commit

Permalink
Merge pull request #598 from boyan01/master
Browse files Browse the repository at this point in the history
add countrycode for cellphone check
  • Loading branch information
Binaryify authored Sep 24, 2019
2 parents 2134432 + 521b98e commit 28ad578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ Cookies
说明 : 调用此接口 ,可检测手机号码是否已注册
**必选参数 :**
`phone` : 手机号码

**可选参数 :**
`countrycode`: 国家码,用于国外手机号,例如美国传入:`1`
**接口地址 :** `/cellphone/existence/check`

**调用例子 :** `/cellphone/existence/check?phone=13xxx`
Expand Down
3 changes: 2 additions & 1 deletion module/cellphone_existence_check.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

module.exports = (query, request) => {
const data = {
cellphone: query.phone
cellphone: query.phone,
countrycode: query.countrycode
};
return request(
'POST',
Expand Down

0 comments on commit 28ad578

Please sign in to comment.