Commit fc3eba0560bcc9b58fb33f0abfcafb2fa762be0f

Authored by 国亚奇
1 parent 43d4ec39

update 快捷登录

Showing 1 changed file with 45 additions and 17 deletions
04.用户云/1.3 快捷登录.md
1 -/*  
2 - Title: 1.3 快捷登录  
3 - Sort: 13  
4 -*/  
5 -#### URL: http://api.cnlive.com/open/api/CnliveMobile/user/quickLogin?sp_id=xxx&...  
6 ------  
7 -#### 请求方式: POST  
8 ------  
9 -#### 返回格式: JSON  
10 ------  
11 #### 请求参数说明: 1 #### 请求参数说明:
12 <table class="table table-bordered table-striped table-condensed"> 2 <table class="table table-bordered table-striped table-condensed">
13 <tr> 3 <tr>
@@ -42,7 +32,7 @@ @@ -42,7 +32,7 @@
42 </tr> 32 </tr>
43 <tr> 33 <tr>
44 <td>frmId</td> 34 <td>frmId</td>
45 - <td>true</td> 35 + <td>false</td>
46 <td>string</td> 36 <td>string</td>
47 <td>渠道ID</td> 37 <td>渠道ID</td>
48 </tr> 38 </tr>
@@ -52,18 +42,56 @@ @@ -52,18 +42,56 @@
52 <td>string</td> 42 <td>string</td>
53 <td>客户端平台[i:IOS客户端,a:Android客户端]</td> 43 <td>客户端平台[i:IOS客户端,a:Android客户端]</td>
54 </tr> 44 </tr>
  45 + <tr>
  46 + <td>sign</td>
  47 + <td>true</td>
  48 + <td>string</td>
  49 + <td>签名</td>
  50 + </tr>
55 </table> 51 </table>
56 52
57 ----- 53 -----
58 #### 返回DATA格式说明: 54 #### 返回DATA格式说明:
59 ``` 55 ```
60 { 56 {
61 - "uid": "122",  
62 - "nickname": "鱼儿",  
63 - "gender": "f", // 性别,m:男、f:女、n:未知  
64 - "location": "China",  
65 - "faceUrl": "http://www.cnlive.com/selfplatform/upload/face/201462/c3646d4e-5f08-4f0b-9ec0-2ff0d4f393ea.jpg",  
66 - "token": "12345678901234567890123456789012", 57 + "errorCode": "0",
  58 + "errorMessage": "成功",
  59 + "data": {
  60 + "uid": "1459939",
  61 + "nickName": "Test_714",
  62 + "gender": "f",
  63 + "location": "China BeiJing",
  64 + "faceUrl": "http://120.92.63.41:8080/mobile/images/mobilehead/default/face_60X60.jpg",
  65 + "token": "dx63Akz2nDQFBtcomqkLuJQ8xsalShCL3IJTmeDjARQ="
  66 + }
  67 +}
  68 +{
  69 + "errorCode": "1",
  70 + "errorMessage": "请求参数无效"
  71 +}
  72 +{
  73 + "errorCode": "41010",
  74 + "errorMessage": "手机号无效"
  75 +}
  76 +{
  77 + "errorCode": "41002",
  78 + "errorMessage": "验证码为6位数字"
  79 +}
  80 +{
  81 + "errorCode": "41009",
  82 + "errorMessage": "验证码错误"
  83 +}
  84 +{
  85 + "errorCode": "41006",
  86 + "errorMessage": "手机号已存在"
  87 +}
  88 +{
  89 + "errorCode": "41008",
  90 + "errorMessage": "昵称已存在"
  91 +}
  92 +{
  93 + "errorCode": "40005",
  94 + "errorMessage": "其他错误"
67 } 95 }
68 96
69 ``` 97 ```
70 \ No newline at end of file 98 \ No newline at end of file