2.2 上传头像.md 1.33 KB

请求参数说明:

参数 必选 类型 说明
appId true string 应用ID
uid true string 用户ID
face true blob 头像文件
clientPlat true string 客户端平台[i:IOS客户端,a:Android客户端]
token true string 平台TOKEN
sign true string 签名

返回格式说明:

{
    "errorCode":"0",
    "errorMsg":"成功"
}
{
    "errorCode":"1",
    "errorMsg":"请求参数无效"
}
{
    "errorCode":"9",
    "errorMsg":"token验证失败"
}
{
    "errorCode":"8",
    "errorMsg":"token已失效"
}
{
    "errorCode": "41005",
    "errorMsg": "ClientPlat无效"
}
{
    "errorCode":"42007",
    "errorMsg":"文件上传失败"
}
{
    "errorCode":"42008",
    "errorMsg":"头像更新失败"
}
{
    "errorCode":"40005",
    "errorMsg":"其他错误"
}