Commit 5ecddd5bc010027822cd1a63a2dd32cb5a29c5b1
1 parent
306c3536
u
Showing
2 changed files
with
50 additions
and
8 deletions
04.用户云/4.6 通过微信openId登录.md
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | } | 41 | } |
| 42 | { | 42 | { |
| 43 | "errorCode": "42015", | 43 | "errorCode": "42015", |
| 44 | - "errorMessage": "unionId未注册,需需要授权手机号" | 44 | + "errorMessage": "unionId未注册,需要授权手机号" |
| 45 | "data":{ | 45 | "data":{ |
| 46 | "appId": "003_002", | 46 | "appId": "003_002", |
| 47 | "openId": "aaabbb", | 47 | "openId": "aaabbb", |
| @@ -56,6 +56,30 @@ | @@ -56,6 +56,30 @@ | ||
| 56 | "unionId": "asd123", | 56 | "unionId": "asd123", |
| 57 | } | 57 | } |
| 58 | { | 58 | { |
| 59 | + "errorCode": "0", | ||
| 60 | + "errorMessage": "成功", | ||
| 61 | + "data": { | ||
| 62 | + "uid": "145xxx", | ||
| 63 | + "nickName": "xxxx", | ||
| 64 | + "gender": "f", | ||
| 65 | + "location": "BeiJing", | ||
| 66 | + "faceUrl": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264_small.jpg", | ||
| 67 | + "mobile": "158xxxxxxxx", | ||
| 68 | + "countryCode": "86", | ||
| 69 | + "email": "", | ||
| 70 | + "extInfo": "", | ||
| 71 | + "platformId": "", | ||
| 72 | + "qqUid": "", | ||
| 73 | + "wxUid": "asd123", | ||
| 74 | + "sinaUid": "", | ||
| 75 | + "renrenUid": "", | ||
| 76 | + "hUid": "", | ||
| 77 | + "token": "IjO5QidbWP5LEy3osSLmD38ImR73pn6Ui/Lg8V/eqSLcglOZ4OMBFA==", | ||
| 78 | + "isNewUser": false, | ||
| 79 | + "bigFaceUrl": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264.jpg" | ||
| 80 | + } | ||
| 81 | +} | ||
| 82 | +{ | ||
| 59 | "errorCode": "1", | 83 | "errorCode": "1", |
| 60 | "errorMessage": "请求参数无效" | 84 | "errorMessage": "请求参数无效" |
| 61 | } | 85 | } |
04.用户云/4.7 通过微信unionId登录.md
| @@ -25,12 +25,6 @@ | @@ -25,12 +25,6 @@ | ||
| 25 | <td>微信的unionid</td> | 25 | <td>微信的unionid</td> |
| 26 | </tr> | 26 | </tr> |
| 27 | <tr> | 27 | <tr> |
| 28 | - <td>frmId</td> | ||
| 29 | - <td>true</td> | ||
| 30 | - <td>string</td> | ||
| 31 | - <td>渠道id</td> | ||
| 32 | - </tr> | ||
| 33 | - <tr> | ||
| 34 | <td>clientPlat</td> | 28 | <td>clientPlat</td> |
| 35 | <td>true</td> | 29 | <td>true</td> |
| 36 | <td>string</td> | 30 | <td>string</td> |
| @@ -49,7 +43,7 @@ | @@ -49,7 +43,7 @@ | ||
| 49 | ``` | 43 | ``` |
| 50 | { | 44 | { |
| 51 | "errorCode": "42015", | 45 | "errorCode": "42015", |
| 52 | - "errorMessage": "unionId未注册,需需要授权手机号" | 46 | + "errorMessage": "unionId未注册,需要授权手机号" |
| 53 | "data":{ | 47 | "data":{ |
| 54 | "appId": "003_002", | 48 | "appId": "003_002", |
| 55 | "openId": "aaabbb", | 49 | "openId": "aaabbb", |
| @@ -64,6 +58,30 @@ | @@ -64,6 +58,30 @@ | ||
| 64 | "unionId": "asd123", | 58 | "unionId": "asd123", |
| 65 | } | 59 | } |
| 66 | { | 60 | { |
| 61 | + "errorCode": "0", | ||
| 62 | + "errorMessage": "成功", | ||
| 63 | + "data": { | ||
| 64 | + "uid": "145xxx", | ||
| 65 | + "nickName": "xxxx", | ||
| 66 | + "gender": "f", | ||
| 67 | + "location": "BeiJing", | ||
| 68 | + "faceUrl": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264_small.jpg", | ||
| 69 | + "mobile": "158xxxxxxxx", | ||
| 70 | + "countryCode": "86", | ||
| 71 | + "email": "", | ||
| 72 | + "extInfo": "", | ||
| 73 | + "platformId": "", | ||
| 74 | + "qqUid": "", | ||
| 75 | + "wxUid": "asd123", | ||
| 76 | + "sinaUid": "", | ||
| 77 | + "renrenUid": "", | ||
| 78 | + "hUid": "", | ||
| 79 | + "token": "IjO5QidbWP5LEy3osSLmD38ImR73pn6Ui/Lg8V/eqSLcglOZ4OMBFA==", | ||
| 80 | + "isNewUser": false, | ||
| 81 | + "bigFaceUrl": "http://yweb0.cnliveimg.com/images/headImg/2018/0716/1531735082264.jpg" | ||
| 82 | + } | ||
| 83 | +} | ||
| 84 | +{ | ||
| 67 | "errorCode": "42018", | 85 | "errorCode": "42018", |
| 68 | "errorMessage": "UnionId错误" | 86 | "errorMessage": "UnionId错误" |
| 69 | } | 87 | } |