+++
post:/user/headimg?access-token=:access-token
*head_img=data:image/jpg;base64#base64编码的头像
*:access-token=92ece3ec585b1b0d433a98d7d8e93410#安全验证字符串
<<<
success
{
"success": true,
"data": {
"message": "头像修改成功!"
}
}
<<<
error
{
"success": false,
"data": {
"name": "Unauthorized",
"message": "头像不能为空",
"code": 0,
"status": 401,
"type": "yii\\web\\HttpException"
}
}
+++
### header头信息:
| 参数名 | 参数值 |
| --- | --- |
| Accept | application/json |
| DeviceId | 310995000000000|
| Sign | e67ce2f83ca715552c7040c6801e020f |