Commit 61d3486b940082ab214ad177f9dab1ca7594a6c8
1 parent
ff47f507
u
Showing
1 changed file
with
153 additions
and
0 deletions
04.用户云/4.13 第三方和手机号登录ForH5.md
0 → 100644
| 1 | +#### 请求参数说明: | |
| 2 | +<table class="table table-bordered table-striped table-condensed"> | |
| 3 | + <tr> | |
| 4 | + <th>参数</th> | |
| 5 | + <th>必选</th> | |
| 6 | + <th>类型</th> | |
| 7 | + <th>说明</th> | |
| 8 | + </tr> | |
| 9 | + <tr> | |
| 10 | + <td>appId</td> | |
| 11 | + <td>true</td> | |
| 12 | + <td>string</td> | |
| 13 | + <td>应用ID</td> | |
| 14 | + </tr> | |
| 15 | + <tr> | |
| 16 | + <td>mobile</td> | |
| 17 | + <td>true</td> | |
| 18 | + <td>string</td> | |
| 19 | + <td>手机号</td> | |
| 20 | + </tr> | |
| 21 | + <tr> | |
| 22 | + <td>countryCode</td> | |
| 23 | + <td>true</td> | |
| 24 | + <td>string</td> | |
| 25 | + <td>手机号国家码;中国为86</td> | |
| 26 | + </tr> | |
| 27 | + <tr> | |
| 28 | + <td>verificationCode</td> | |
| 29 | + <td>true</td> | |
| 30 | + <td>string</td> | |
| 31 | + <td>手机验证码</td> | |
| 32 | + </tr> | |
| 33 | + <tr> | |
| 34 | + <td>thirdPartyPlat</td> | |
| 35 | + <td>true</td> | |
| 36 | + <td>int</td> | |
| 37 | + <td>第三方平台编号 [platform : 1:sina 2:qq 3:weixin 4:renren]</td> | |
| 38 | + </tr> | |
| 39 | + <tr> | |
| 40 | + <td>thirdPartyId</td> | |
| 41 | + <td>true</td> | |
| 42 | + <td>string</td> | |
| 43 | + <td>第三方用户ID<br>[qq: 建议使用unionid, wx: 建议使用unionid, sina: 建议使用idstr];<br>注意:同一用户在登录Sp下不同app时,thirdPartyId必须相同</td> | |
| 44 | + </tr> | |
| 45 | + <tr> | |
| 46 | + <td>uuid</td> | |
| 47 | + <td>true</td> | |
| 48 | + <td>string</td> | |
| 49 | + <td>设备ID</td> | |
| 50 | + </tr> | |
| 51 | + <tr> | |
| 52 | + <td>frmId</td> | |
| 53 | + <td>true</td> | |
| 54 | + <td>string</td> | |
| 55 | + <td>渠道ID</td> | |
| 56 | + </tr> | |
| 57 | + <tr> | |
| 58 | + <td>clientPlat</td> | |
| 59 | + <td>true</td> | |
| 60 | + <td>string</td> | |
| 61 | + <td>客户端平台[i:IOS客户端,a:Android客户端, w: 网页]</td> | |
| 62 | + </tr> | |
| 63 | + <tr> | |
| 64 | + <td>nickName</td> | |
| 65 | + <td>true</td> | |
| 66 | + <td>string</td> | |
| 67 | + <td>用户昵称</td> | |
| 68 | + </tr> | |
| 69 | + <tr> | |
| 70 | + <td>gender</td> | |
| 71 | + <td>false</td> | |
| 72 | + <td>string</td> | |
| 73 | + <td>性别,m:男、f:女、n:未知</td> | |
| 74 | + </tr> | |
| 75 | + <tr> | |
| 76 | + <td>location</td> | |
| 77 | + <td>false</td> | |
| 78 | + <td>string</td> | |
| 79 | + <td>用户所在地</td> | |
| 80 | + </tr> | |
| 81 | + <tr> | |
| 82 | + <td>faceUrl</td> | |
| 83 | + <td>false</td> | |
| 84 | + <td>string</td> | |
| 85 | + <td>头像,约100*100</td> | |
| 86 | + </tr> | |
| 87 | + <tr> | |
| 88 | + <td>sign</td> | |
| 89 | + <td>true</td> | |
| 90 | + <td>string</td> | |
| 91 | + <td>签名</td> | |
| 92 | + </tr> | |
| 93 | +</table> | |
| 94 | + | |
| 95 | +----- | |
| 96 | +#### 返回格式说明: | |
| 97 | +``` | |
| 98 | + | |
| 99 | +{ | |
| 100 | + "errorCode": "0", | |
| 101 | + "errorMessage": "成功", | |
| 102 | + "data": { | |
| 103 | + "uid":"145xxx", | |
| 104 | + "nickName":"xxxx", | |
| 105 | + "gender":"f", | |
| 106 | + "location":"BeiJing", | |
| 107 | + "faceUrl":"http://yweb0.cnliveimg.com/images/headImg/2019/0708/xxxx_small.jpg", | |
| 108 | + "mobile":"158xxxxxxxx", | |
| 109 | + "countryCode":"86", | |
| 110 | + "email":"xxxx@xx.com", | |
| 111 | + "extInfo":"asdada", | |
| 112 | + "platformId":"", | |
| 113 | + "qqUid":"2sssss1", | |
| 114 | + "wxUid":"", | |
| 115 | + "sinaUid":"", | |
| 116 | + "renrenUid":"", | |
| 117 | + "hUid":"", | |
| 118 | + "token":"+UY41deNFjlseiC2QZxlFG6gNvNYi1J9/tWkG5qxWDRMxqSZPpDceQ==", | |
| 119 | + "isNewUser":false, | |
| 120 | + "bigFaceUrl":"http://yweb0.cnliveimg.com/images/headImg/2019/0708/xxxx.jpg" | |
| 121 | + } | |
| 122 | +} | |
| 123 | +{ | |
| 124 | + "errorCode": "1", | |
| 125 | + "errorMessage": "请求参数无效" | |
| 126 | +} | |
| 127 | +{ | |
| 128 | + "errorCode": "41014", | |
| 129 | + "errorMessage": "第三方平台编号无效" | |
| 130 | +} | |
| 131 | +{ | |
| 132 | + "errorCode": "41009", | |
| 133 | + "errorMsg": "验证码错误" | |
| 134 | +} | |
| 135 | +{ | |
| 136 | + "errorCode": "41010", | |
| 137 | + "errorMsg": "手机号无效" | |
| 138 | +} | |
| 139 | +{ | |
| 140 | + "errorCode": "41002", | |
| 141 | + "errorMsg": "验证码为6位数字" | |
| 142 | +} | |
| 143 | +{ | |
| 144 | + "errorCode": "41005", | |
| 145 | + "errorMsg": "ClientPlat无效" | |
| 146 | +} | |
| 147 | +{ "errorCode":"41057", | |
| 148 | + "errorMessage":"该手机号已注册,请直接登录" | |
| 149 | +} | |
| 150 | +{ | |
| 151 | + "errorCode": "40005", | |
| 152 | + "errorMessage": "其他错误" | |
| 153 | +} | |
| 0 | 154 | \ No newline at end of file | ... | ... |