Commit 8c316e47df40af42d7fe811fcffb7ecfea2c5103
1 parent
ed41db5b
add
Showing
3 changed files
with
282 additions
and
0 deletions
04.用户云/4.10 通过code获取微信openId.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>jsCode</td> | ||
| 17 | + <td>true</td> | ||
| 18 | + <td>string</td> | ||
| 19 | + <td>微信jsCode</td> | ||
| 20 | + </tr> | ||
| 21 | + <tr> | ||
| 22 | + <td>clientPlat</td> | ||
| 23 | + <td>true</td> | ||
| 24 | + <td>string</td> | ||
| 25 | + <td>客户端平台[i:IOS客户端,a:Android客户端, w: 网页]</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 | +{ | ||
| 40 | + "errorCode": "0", | ||
| 41 | + "errorMessage": "成功" | ||
| 42 | + "data":{ | ||
| 43 | + "appId": "769_002", | ||
| 44 | + "openId": "aaabbb", | ||
| 45 | + "unionId": "asd123", | ||
| 46 | + "sid": "111" | ||
| 47 | + } | ||
| 48 | +} | ||
| 49 | +{ | ||
| 50 | + "errorCode": "42014", | ||
| 51 | + "errorMessage": "openId未绑定,需要授权unionId" | ||
| 52 | + "data":{ | ||
| 53 | + "appId": "769_002", | ||
| 54 | + "openId": "aaabbb", | ||
| 55 | + "unionId": "", | ||
| 56 | + "sid": "" | ||
| 57 | + } | ||
| 58 | +} | ||
| 59 | +{ | ||
| 60 | + "errorCode": "42015", | ||
| 61 | + "errorMessage": "未注册" | ||
| 62 | + "data":{ | ||
| 63 | + "appId": "769_002", | ||
| 64 | + "openId": "aaabbb", | ||
| 65 | + "unionId": "cdnsifbeiu", | ||
| 66 | + "sid": "" | ||
| 67 | + } | ||
| 68 | +} | ||
| 69 | +{ | ||
| 70 | + "errorCode": "42026", | ||
| 71 | + "errorMessage": "OpenId错误" | ||
| 72 | +} | ||
| 73 | + | ||
| 74 | +{ | ||
| 75 | + "errorCode": "1", | ||
| 76 | + "errorMessage": "请求参数无效" | ||
| 77 | +} | ||
| 78 | + | ||
| 79 | + | ||
| 80 | +{ | ||
| 81 | + "errorCode": "41005", | ||
| 82 | + "errorMessage": "ClientPlat无效" | ||
| 83 | +} | ||
| 84 | +{ | ||
| 85 | + "errorCode": "40005", | ||
| 86 | + "errorMessage": "其他错误" | ||
| 87 | +} | ||
| 88 | +``` | ||
| 0 | \ No newline at end of file | 89 | \ No newline at end of file |
04.用户云/4.11 获取微信unionId.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>openId</td> | ||
| 17 | + <td>true</td> | ||
| 18 | + <td>string</td> | ||
| 19 | + <td>微信openId</td> | ||
| 20 | + </tr> | ||
| 21 | + <tr> | ||
| 22 | + <td>userEncryptedData</td> | ||
| 23 | + <td>true</td> | ||
| 24 | + <td>string</td> | ||
| 25 | + <td>微信加密信息</td> | ||
| 26 | + </tr> | ||
| 27 | + <tr> | ||
| 28 | + <td>iv</td> | ||
| 29 | + <td>true</td> | ||
| 30 | + <td>string</td> | ||
| 31 | + <td>微信iv</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 | + "errorCode": "0", | ||
| 52 | + "errorMessage": "成功" | ||
| 53 | + "data":{ | ||
| 54 | + "appId": "769_002", | ||
| 55 | + "openId": "aaabbb", | ||
| 56 | + "unionId": "asd123", | ||
| 57 | + "sid": "111" | ||
| 58 | + } | ||
| 59 | +} | ||
| 60 | +{ | ||
| 61 | + "errorCode": "42015", | ||
| 62 | + "errorMessage": "未注册" | ||
| 63 | + "data":{ | ||
| 64 | + "appId": "769_002", | ||
| 65 | + "openId": "aaabbb", | ||
| 66 | + "unionId": "cdnsifbeiu", | ||
| 67 | + "sid": "" | ||
| 68 | + } | ||
| 69 | +} | ||
| 70 | +{ | ||
| 71 | + "errorCode": "42026", | ||
| 72 | + "errorMessage": "OpenId错误" | ||
| 73 | +} | ||
| 74 | +{ | ||
| 75 | + "errorCode": "40001", | ||
| 76 | + "errorMessage": "解密错误" | ||
| 77 | +} | ||
| 78 | +{ | ||
| 79 | + "errorCode": "42018", | ||
| 80 | + "errorMessage": "unionId错误" | ||
| 81 | +} | ||
| 82 | + | ||
| 83 | +{ | ||
| 84 | + "errorCode": "1", | ||
| 85 | + "errorMessage": "请求参数无效" | ||
| 86 | +} | ||
| 87 | + | ||
| 88 | + | ||
| 89 | +{ | ||
| 90 | + "errorCode": "41005", | ||
| 91 | + "errorMessage": "ClientPlat无效" | ||
| 92 | +} | ||
| 93 | +{ | ||
| 94 | + "errorCode": "40005", | ||
| 95 | + "errorMessage": "其他错误" | ||
| 96 | +} | ||
| 97 | +``` | ||
| 0 | \ No newline at end of file | 98 | \ No newline at end of file |
04.用户云/4.12 根据unionid、mobile注册.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>openId</td> | ||
| 17 | + <td>true</td> | ||
| 18 | + <td>string</td> | ||
| 19 | + <td>微信openId</td> | ||
| 20 | + </tr> | ||
| 21 | + <tr> | ||
| 22 | + <td>unionId</td> | ||
| 23 | + <td>true</td> | ||
| 24 | + <td>string</td> | ||
| 25 | + <td>微信unionId</td> | ||
| 26 | + </tr> | ||
| 27 | + <tr> | ||
| 28 | + <td>mobileEncryptedData</td> | ||
| 29 | + <td>true</td> | ||
| 30 | + <td>string</td> | ||
| 31 | + <td>微信加密信息</td> | ||
| 32 | + </tr> | ||
| 33 | + <tr> | ||
| 34 | + <td>iv</td> | ||
| 35 | + <td>true</td> | ||
| 36 | + <td>string</td> | ||
| 37 | + <td>微信iv</td> | ||
| 38 | + </tr> | ||
| 39 | + <tr> | ||
| 40 | + <td>clientPlat</td> | ||
| 41 | + <td>true</td> | ||
| 42 | + <td>string</td> | ||
| 43 | + <td>客户端平台[i:IOS客户端,a:Android客户端, w: 网页]</td> | ||
| 44 | + </tr> | ||
| 45 | + <tr> | ||
| 46 | + <td>sign</td> | ||
| 47 | + <td>true</td> | ||
| 48 | + <td>string</td> | ||
| 49 | + <td>签名</td> | ||
| 50 | + </tr> | ||
| 51 | +</table> | ||
| 52 | + | ||
| 53 | +----- | ||
| 54 | +#### 返回格式说明: | ||
| 55 | +``` | ||
| 56 | +{ | ||
| 57 | + "errorCode": "0", | ||
| 58 | + "errorMessage": "成功" | ||
| 59 | + "data":{ | ||
| 60 | + "appId": "769_002", | ||
| 61 | + "openId": "aaabbb", | ||
| 62 | + "unionId": "asd123", | ||
| 63 | + "sid": "111" | ||
| 64 | + } | ||
| 65 | +} | ||
| 66 | +{ | ||
| 67 | + "errorCode": "42026", | ||
| 68 | + "errorMessage": "OpenId错误" | ||
| 69 | +} | ||
| 70 | +{ | ||
| 71 | + "errorCode": "40001", | ||
| 72 | + "errorMessage": "解密错误" | ||
| 73 | +} | ||
| 74 | +{ | ||
| 75 | + "errorCode": "41010", | ||
| 76 | + "errorMessage": "手机号无效" | ||
| 77 | +} | ||
| 78 | +{ | ||
| 79 | + "errorCode": "42028", | ||
| 80 | + "errorMessage": "用户信息不存在" | ||
| 81 | +} | ||
| 82 | + | ||
| 83 | +{ | ||
| 84 | + "errorCode": "1", | ||
| 85 | + "errorMessage": "请求参数无效" | ||
| 86 | +} | ||
| 87 | + | ||
| 88 | + | ||
| 89 | +{ | ||
| 90 | + "errorCode": "41005", | ||
| 91 | + "errorMessage": "ClientPlat无效" | ||
| 92 | +} | ||
| 93 | +{ | ||
| 94 | + "errorCode": "40005", | ||
| 95 | + "errorMessage": "其他错误" | ||
| 96 | +} | ||
| 97 | +``` | ||
| 0 | \ No newline at end of file | 98 | \ No newline at end of file |