Commit 0977bed63a0d490ee8d6b0c01f051a8ca4cb13e0
1 parent
2235dc3a
验证码由后台服务生成
Showing
1 changed file
with
62 additions
and
68 deletions
04.用户云/1.5 登录注册-手机号验证码.md
| 1 | -/* | |
| 2 | - Title: 1.5 手机号验证码 | |
| 3 | - Sort: 15 | |
| 4 | -*/ | |
| 5 | -#### URL: http://api.cnlive.com/open/api/CnliveMobile/json/sendVerifyCode?sp_id=xxx&... | |
| 6 | ------ | |
| 7 | -#### 请求方式: POST | |
| 8 | ------ | |
| 9 | -#### 返回格式: JSON | |
| 10 | ------ | |
| 11 | -#### 请求参数说明: | |
| 12 | -<table class="table table-bordered table-striped table-condensed"> | |
| 13 | - <tr> | |
| 14 | - <th>参数</th> | |
| 15 | - <th>必选</th> | |
| 16 | - <th>类型</th> | |
| 17 | - <th>说明</th> | |
| 18 | - </tr> | |
| 19 | - <tr> | |
| 20 | - <td>sp_id</td> | |
| 21 | - <td>true</td> | |
| 22 | - <td>string</td> | |
| 23 | - <td>服务提供商ID</td> | |
| 24 | - </tr> | |
| 25 | - <tr> | |
| 26 | - <td>mobile</td> | |
| 27 | - <td>true</td> | |
| 28 | - <td>string</td> | |
| 29 | - <td>手机号</td> | |
| 30 | - </tr> | |
| 31 | - <tr> | |
| 32 | - <td>token</td> | |
| 33 | - <td>true</td> | |
| 34 | - <td>string</td> | |
| 35 | - <td>验证码</td> | |
| 36 | - </tr> | |
| 37 | - <tr> | |
| 38 | - <td>type</td> | |
| 39 | - <td>true</td> | |
| 40 | - <td>string</td> | |
| 41 | - <td>验证码类型: 0-手机号注册时发送验证码,1-手机号找回密码时发送验证码,2-仅给手机号发送验证码(例如:快捷登录)</td> | |
| 42 | - </tr> | |
| 43 | - <tr> | |
| 44 | - <td>plat</td> | |
| 45 | - <td>true</td> | |
| 46 | - <td>string</td> | |
| 47 | - <td>客户端平台[i:IOS客户端,a:Android客户端]</td> | |
| 48 | - </tr> | |
| 49 | - <tr> | |
| 50 | - <td>sign</td> | |
| 51 | - <td>true</td> | |
| 52 | - <td>string</td> | |
| 53 | - <td>签名</td> | |
| 54 | - </tr> | |
| 55 | -</table> | |
| 56 | - | |
| 57 | ------ | |
| 58 | -#### 返回格式说明: | |
| 59 | -``` | |
| 60 | -{ | |
| 61 | - errorCode:"0", | |
| 62 | - errorMsg:"成功" | |
| 63 | -} | |
| 64 | -{ | |
| 65 | - errorCode:"xxx", //错误代码(非0) | |
| 66 | - errorMsg:"失败" //错误信息 | |
| 67 | -} | |
| 68 | - | |
| 1 | +/* | |
| 2 | + Title: 1.1 手机号验证码 | |
| 3 | + Sort: 11 | |
| 4 | +*/ | |
| 5 | +#### URL: http://api.cnlive.com/open/api/CnliveMobile/json/sendVerifyCode | |
| 6 | +----- | |
| 7 | +#### 请求方式: POST | |
| 8 | +----- | |
| 9 | +#### 返回格式: JSON | |
| 10 | +----- | |
| 11 | +#### 请求参数说明: | |
| 12 | +<table class="table table-bordered table-striped table-condensed"> | |
| 13 | + <tr> | |
| 14 | + <th>参数</th> | |
| 15 | + <th>必选</th> | |
| 16 | + <th>类型</th> | |
| 17 | + <th>说明</th> | |
| 18 | + </tr> | |
| 19 | + <tr> | |
| 20 | + <td>spId</td> | |
| 21 | + <td>true</td> | |
| 22 | + <td>string</td> | |
| 23 | + <td>服务提供商ID</td> | |
| 24 | + </tr> | |
| 25 | + <tr> | |
| 26 | + <td>mobile</td> | |
| 27 | + <td>true</td> | |
| 28 | + <td>string</td> | |
| 29 | + <td>手机号</td> | |
| 30 | + </tr> | |
| 31 | + <tr> | |
| 32 | + <td>type</td> | |
| 33 | + <td>true</td> | |
| 34 | + <td>string</td> | |
| 35 | + <td>验证码类型: 0-手机号注册时发送验证码,1-手机号找回密码时发送验证码,2-仅给手机号发送验证码(例如:快捷登录)</td> | |
| 36 | + </tr> | |
| 37 | + <tr> | |
| 38 | + <td>clientPlat</td> | |
| 39 | + <td>true</td> | |
| 40 | + <td>string</td> | |
| 41 | + <td>客户端平台[i:IOS客户端,a:Android客户端]</td> | |
| 42 | + </tr> | |
| 43 | + <tr> | |
| 44 | + <td>sign</td> | |
| 45 | + <td>true</td> | |
| 46 | + <td>string</td> | |
| 47 | + <td>签名</td> | |
| 48 | + </tr> | |
| 49 | +</table> | |
| 50 | + | |
| 51 | +----- | |
| 52 | +#### 返回格式说明: | |
| 53 | +``` | |
| 54 | +{ | |
| 55 | + errorCode:"0", | |
| 56 | + errorMsg:"成功" | |
| 57 | +} | |
| 58 | +{ | |
| 59 | + errorCode:"xxx", //错误代码(非0) | |
| 60 | + errorMsg:"失败" //错误信息 | |
| 61 | +} | |
| 62 | + | |
| 69 | 63 | ``` |
| 70 | 64 | \ No newline at end of file | ... | ... |