Commit f83d64f5c4bf38580cf9cdcc60969ca99614bc31
1 parent
ff7fabfe
add 校验苹果token
Showing
1 changed file
with
54 additions
and
0 deletions
04.用户云/5.6校验苹果token.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>code</td> | |
| 11 | + <td>true</td> | |
| 12 | + <td>string</td> | |
| 13 | + <td>苹果authorizationCode</td> | |
| 14 | + </tr> | |
| 15 | + <tr> | |
| 16 | + <td>token</td> | |
| 17 | + <td>true</td> | |
| 18 | + <td>string</td> | |
| 19 | + <td>苹果identityToken</td> | |
| 20 | + </tr> | |
| 21 | + <tr> | |
| 22 | + <td>userId</td> | |
| 23 | + <td>true</td> | |
| 24 | + <td>string</td> | |
| 25 | + <td>苹果userID</td> | |
| 26 | + </tr> | |
| 27 | + <tr> | |
| 28 | + <td>sign</td> | |
| 29 | + <td>true</td> | |
| 30 | + <td>string</td> | |
| 31 | + <td>签名</td> | |
| 32 | + </tr> | |
| 33 | +</table> | |
| 34 | + | |
| 35 | +----- | |
| 36 | +#### 返回格式说明: | |
| 37 | +``` | |
| 38 | +{ | |
| 39 | + "errorCode": "0", | |
| 40 | + "errorMessage": "成功" | |
| 41 | +} | |
| 42 | +{ | |
| 43 | + "errorCode": "1", | |
| 44 | + "errorMessage": "请求参数无效" | |
| 45 | +} | |
| 46 | +{ | |
| 47 | + "errorCode": "9", | |
| 48 | + "errorMessage": "token验证失败" | |
| 49 | +} | |
| 50 | +{ | |
| 51 | + "errorCode": "8", | |
| 52 | + "errorMessage": "token已失效" | |
| 53 | +} | |
| 54 | +``` | |
| 0 | 55 | \ No newline at end of file | ... | ... |