Commit 2f77ab5d8da7ff2ed6b0a4d55be1f2d6ef080a54
1 parent
d10d4f8c
u
Showing
1 changed file
with
20 additions
and
20 deletions
04.用户云/4.14 通过code获取微信openId-unoinId.md
| 1 | -#### 璇锋眰鍙傛暟璇存槑: | |
| 1 | +#### 请求参数说明: | |
| 2 | 2 | <table class="table table-bordered table-striped table-condensed"> |
| 3 | 3 | <tr> |
| 4 | - <th>鍙傛暟</th> | |
| 5 | - <th>蹇呴��</th> | |
| 6 | - <th>绫诲瀷</th> | |
| 7 | - <th>璇存槑</th> | |
| 4 | + <th>参数</th> | |
| 5 | + <th>必选</th> | |
| 6 | + <th>类型</th> | |
| 7 | + <th>说明</th> | |
| 8 | 8 | </tr> |
| 9 | 9 | <tr> |
| 10 | 10 | <td>appId</td> |
| 11 | 11 | <td>true</td> |
| 12 | 12 | <td>string</td> |
| 13 | - <td>搴旂敤ID</td> | |
| 13 | + <td>应用ID</td> | |
| 14 | 14 | </tr> |
| 15 | 15 | <tr> |
| 16 | 16 | <td>jsCode</td> |
| 17 | 17 | <td>true</td> |
| 18 | 18 | <td>string</td> |
| 19 | - <td>寰俊jsCode</td> | |
| 19 | + <td>微信jsCode</td> | |
| 20 | 20 | </tr> |
| 21 | 21 | <tr> |
| 22 | 22 | <td>source</td> |
| 23 | 23 | <td>true</td> |
| 24 | 24 | <td>string</td> |
| 25 | - <td>灏忕▼搴�</td> | |
| 25 | + <td>小程序</td> | |
| 26 | 26 | </tr> |
| 27 | 27 | <tr> |
| 28 | - <td>clientPlat</td> | |
| 28 | + <td>noNeedUserInfo</td> | |
| 29 | 29 | <td>true</td> |
| 30 | 30 | <td>string</td> |
| 31 | - <td>瀹㈡埛绔钩鍙癧i锛欼OS瀹㈡埛绔紝a锛欰ndroid瀹㈡埛绔�, w: 缃戦〉]</td> | |
| 31 | + <td>客户端平台[i:IOS客户端,a:Android客户端, w: 网页]</td> | |
| 32 | 32 | </tr> |
| 33 | 33 | <tr> |
| 34 | - <td>noNeedUserInfo</td> | |
| 34 | + <td>clientPlat</td> | |
| 35 | 35 | <td>true</td> |
| 36 | 36 | <td>string</td> |
| 37 | - <td>瀹㈡埛绔钩鍙癧i锛欼OS瀹㈡埛绔紝a锛欰ndroid瀹㈡埛绔�, w: 缃戦〉]</td> | |
| 37 | + <td>客户端平台[i:IOS客户端,a:Android客户端, w: 网页]</td> | |
| 38 | 38 | </tr> |
| 39 | 39 | <tr> |
| 40 | 40 | <td>sign</td> |
| 41 | 41 | <td>true</td> |
| 42 | 42 | <td>string</td> |
| 43 | - <td>绛惧悕</td> | |
| 43 | + <td>签名</td> | |
| 44 | 44 | </tr> |
| 45 | 45 | </table> |
| 46 | 46 | |
| 47 | 47 | ----- |
| 48 | -#### 杩斿洖鏍煎紡璇存槑: | |
| 48 | +#### 返回格式说明: | |
| 49 | 49 | ``` |
| 50 | 50 | |
| 51 | 51 | { |
| 52 | 52 | "errorCode": "0", |
| 53 | - "errorMessage": "鎴愬姛" | |
| 53 | + "errorMessage": "成功" | |
| 54 | 54 | "data":{ |
| 55 | 55 | "appId": "769_002", |
| 56 | 56 | "openId": "aaabbb", |
| ... | ... | @@ -61,7 +61,7 @@ |
| 61 | 61 | } |
| 62 | 62 | { |
| 63 | 63 | "errorCode": "42015", |
| 64 | - "errorMessage": "鏈敞鍐�" | |
| 64 | + "errorMessage": "未注册" | |
| 65 | 65 | "data":{ |
| 66 | 66 | "appId": "769_002", |
| 67 | 67 | "openId": "aaabbb", |
| ... | ... | @@ -72,21 +72,21 @@ |
| 72 | 72 | } |
| 73 | 73 | { |
| 74 | 74 | "errorCode": "42018", |
| 75 | - "errorMessage": "unionId閿欒" | |
| 75 | + "errorMessage": "unionId错误" | |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | { |
| 79 | 79 | "errorCode": "1", |
| 80 | - "errorMessage": "璇锋眰鍙傛暟鏃犳晥" | |
| 80 | + "errorMessage": "请求参数无效" | |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | |
| 84 | 84 | { |
| 85 | 85 | "errorCode": "41005", |
| 86 | - "errorMessage": "ClientPlat鏃犳晥" | |
| 86 | + "errorMessage": "ClientPlat无效" | |
| 87 | 87 | } |
| 88 | 88 | { |
| 89 | 89 | "errorCode": "40005", |
| 90 | - "errorMessage": "鍏朵粬閿欒" | |
| 90 | + "errorMessage": "其他错误" | |
| 91 | 91 | } |
| 92 | 92 | ``` |
| 93 | 93 | \ No newline at end of file | ... | ... |