Commit 968bea2872bd3694917096a0cda09f1945f9b5af
1 parent
326f9a13
update api
Showing
1 changed file
with
26 additions
and
13 deletions
04.用户云/2.2 用户信息-上传头像.md
| 1 | -/* | ||
| 2 | - Title: 2.2 上传头像 | ||
| 3 | - Sort: 22 | ||
| 4 | -*/ | ||
| 5 | -#### URL: http://api.cnlive.com/open/api/CnliveMobile/json/avatarUpdate?sp_id=xxx&... | ||
| 6 | ------ | ||
| 7 | -#### 请求方式: POST | ||
| 8 | ------ | ||
| 9 | -#### 返回格式: JSON | ||
| 10 | ------ | ||
| 11 | #### 请求参数说明: | 1 | #### 请求参数说明: |
| 12 | <table class="table table-bordered table-striped table-condensed"> | 2 | <table class="table table-bordered table-striped table-condensed"> |
| 13 | <tr> | 3 | <tr> |
| @@ -56,8 +46,31 @@ | @@ -56,8 +46,31 @@ | ||
| 56 | errorMsg:"成功" | 46 | errorMsg:"成功" |
| 57 | } | 47 | } |
| 58 | { | 48 | { |
| 59 | - errorCode:"xxx", //错误代码(非0) | ||
| 60 | - errorMsg:"失败" //错误信息 | 49 | + errorCode:"1", |
| 50 | + errorMsg:"请求参数无效" | ||
| 51 | +} | ||
| 52 | +{ | ||
| 53 | + errorCode:"9", | ||
| 54 | + errorMsg:"token验证失败" | ||
| 55 | +} | ||
| 56 | +{ | ||
| 57 | + errorCode:"8", | ||
| 58 | + errorMsg:"token已失效" | ||
| 59 | +} | ||
| 60 | +{ | ||
| 61 | + errorCode:"41005", | ||
| 62 | + errorMsg:"ClientPlat无效" | ||
| 63 | +} | ||
| 64 | +{ | ||
| 65 | + errorCode:"42007", | ||
| 66 | + errorMsg:"文件上传失败" | ||
| 67 | +} | ||
| 68 | +{ | ||
| 69 | + errorCode:"42008", | ||
| 70 | + errorMsg:"头像更新失败" | ||
| 71 | +} | ||
| 72 | +{ | ||
| 73 | + errorCode:"40005", | ||
| 74 | + errorMsg:"其他错误" | ||
| 61 | } | 75 | } |
| 62 | - | ||
| 63 | ``` | 76 | ``` |
| 64 | \ No newline at end of file | 77 | \ No newline at end of file |