From 521b98ea46a9bedb20a8e0266fa5a2b6488a985d Mon Sep 17 00:00:00 2001 From: boyan Date: Tue, 24 Sep 2019 10:04:29 +0800 Subject: [PATCH] add countrycode for cellphone check --- docs/README.md | 3 ++- module/cellphone_existence_check.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 8b59cdf..9fe2d5f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -362,7 +362,8 @@ Cookies 说明 : 调用此接口 ,可检测手机号码是否已注册 **必选参数 :** `phone` : 手机号码 - +**可选参数 :** +`countrycode`: 国家码,用于国外手机号,例如美国传入:`1` **接口地址 :** `/cellphone/existence/check` **调用例子 :** `/cellphone/existence/check?phone=13xxx` diff --git a/module/cellphone_existence_check.js b/module/cellphone_existence_check.js index 94325dc..229391c 100644 --- a/module/cellphone_existence_check.js +++ b/module/cellphone_existence_check.js @@ -2,7 +2,8 @@ module.exports = (query, request) => { const data = { - cellphone: query.phone + cellphone: query.phone, + countrycode: query.countrycode }; return request( 'POST',