Commit 93305123c8d4d7d59ad89bba58504cb6fd2acfdd
1 parent
20094b87
add
Showing
1 changed file
with
97 additions
and
0 deletions
04.用户云/4.8 第三方登录ForWJJ.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>thirdPartyPlat</td> | |
| 17 | + <td>true</td> | |
| 18 | + <td>int</td> | |
| 19 | + <td>第三方平台编号 [platform : 1:sina 2:qq 3:weixin 4:renren]</td> | |
| 20 | + </tr> | |
| 21 | + <tr> | |
| 22 | + <td>thirdPartyId</td> | |
| 23 | + <td>true</td> | |
| 24 | + <td>string</td> | |
| 25 | + <td>第三方用户ID<br>[qq: 建议使用openid, wx: 建议使用unionid, sina: 建议使用idstr];<br>注意:同一用户在登录Sp下不同app时,thirdPartyId必须相同</td> | |
| 26 | + </tr> | |
| 27 | + <tr> | |
| 28 | + <td>frmId</td> | |
| 29 | + <td>false</td> | |
| 30 | + <td>string</td> | |
| 31 | + <td>渠道ID</td> | |
| 32 | + </tr> | |
| 33 | + <tr> | |
| 34 | + <td>clientPlat</td> | |
| 35 | + <td>true</td> | |
| 36 | + <td>string</td> | |
| 37 | + <td>客户端平台[i:IOS客户端,a:Android客户端, w: 网页]</td> | |
| 38 | + </tr> | |
| 39 | + <tr> | |
| 40 | + <td>sign</td> | |
| 41 | + <td>true</td> | |
| 42 | + <td>string</td> | |
| 43 | + <td>签名</td> | |
| 44 | + </tr> | |
| 45 | +</table> | |
| 46 | + | |
| 47 | +----- | |
| 48 | +#### 返回格式说明: | |
| 49 | +``` | |
| 50 | + | |
| 51 | +{ | |
| 52 | + "errorCode": "0", | |
| 53 | + "errorMessage": "成功", | |
| 54 | + "data": { | |
| 55 | + "uid":"145xxx", | |
| 56 | + "nickName":"xxxx", | |
| 57 | + "gender":"f", | |
| 58 | + "location":"BeiJing", | |
| 59 | + "faceUrl":"http://yweb0.cnliveimg.com/images/headImg/2019/0708/xxxx_small.jpg", | |
| 60 | + "mobile":"158xxxxxxxx", | |
| 61 | + "countryCode":"86", | |
| 62 | + "email":"xxxx@xx.com", | |
| 63 | + "extInfo":"asdada", | |
| 64 | + "platformId":"", | |
| 65 | + "qqUid":"2sssss1", | |
| 66 | + "wxUid":"", | |
| 67 | + "sinaUid":"", | |
| 68 | + "renrenUid":"", | |
| 69 | + "hUid":"", | |
| 70 | + "token":"+UY41deNFjlseiC2QZxlFG6gNvNYi1J9/tWkG5qxWDRMxqSZPpDceQ==", | |
| 71 | + "isNewUser":false, | |
| 72 | + "bigFaceUrl":"http://yweb0.cnliveimg.com/images/headImg/2019/0708/xxxx.jpg" | |
| 73 | + } | |
| 74 | +} | |
| 75 | +{ | |
| 76 | + "errorCode": "1", | |
| 77 | + "errorMessage": "请求参数无效" | |
| 78 | +} | |
| 79 | +{ | |
| 80 | + "errorCode": "41014", | |
| 81 | + "errorMessage": "第三方平台编号无效" | |
| 82 | +} | |
| 83 | +{ | |
| 84 | + "errorCode": "41005", | |
| 85 | + "errorMsg": "ClientPlat无效" | |
| 86 | +} | |
| 87 | +{ "errorCode":"42013", | |
| 88 | + "errorMessage":"此帐号未注册,请先注册" | |
| 89 | +} | |
| 90 | + | |
| 91 | +{ "errorCode":"42019", | |
| 92 | + "errorMessage":"账号异常" | |
| 93 | +} | |
| 94 | +{ | |
| 95 | + "errorCode": "40005", | |
| 96 | + "errorMessage": "其他错误" | |
| 97 | +} | |
| 0 | 98 | \ No newline at end of file | ... | ... |